fix module template issues

This commit is contained in:
Shaun Walker
2021-06-17 12:12:19 -04:00
parent f330c4fcb6
commit 32c49f74d3
6 changed files with 15 additions and 17 deletions

View File

@ -80,7 +80,7 @@
try
{
validated = true;
var interop = new Interop(JSRuntime);
var interop = new Oqtane.UI.Interop(JSRuntime);
if (await interop.FormValid(form))
{
if (PageState.Action == "Add")

View File

@ -11,14 +11,9 @@ namespace [Owner].[Module].Services
{
public class [Module]Service : ServiceBase, I[Module]Service, IService
{
private readonly SiteState _siteState;
public [Module]Service(HttpClient http, SiteState siteState) : base(http, siteState) { }
public [Module]Service(HttpClient http, SiteState siteState) : base(http)
{
_siteState = siteState;
}
private string Apiurl => CreateApiUrl("[Module]", _siteState.Alias);
private string Apiurl => CreateApiUrl("[Module]");
public async Task<List<Models.[Module]>> Get[Module]sAsync(int ModuleId)
{

View File

@ -4,8 +4,10 @@
@using System.Net.Http
@using System.Net.Http.Json
@using Microsoft.AspNetCore.Components.Authorization
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.Extensions.Localization
@using Microsoft.JSInterop
@using Oqtane.Models
@ -18,4 +20,5 @@
@using Oqtane.Themes
@using Oqtane.Themes.Controls
@using Oqtane.UI
@using Oqtane.Enums
@using Oqtane.Enums
@using Oqtane.Interfaces