added ability to add site through admin UI, fixed Logo control to not render of site does not have a logo, updated launchsettings so that port number is consistent for both IIS Express and .NET Core web server
This commit is contained in:
@ -10,8 +10,9 @@
|
||||
protected PageState PageState { get; set; }
|
||||
|
||||
[Parameter]
|
||||
private Module ModuleState { get; set; }
|
||||
private Module Module { get; set; }
|
||||
|
||||
Module ModuleState;
|
||||
string container;
|
||||
|
||||
RenderFragment DynamicComponent { get; set; }
|
||||
@ -35,6 +36,7 @@
|
||||
|
||||
protected override Task OnParametersSetAsync()
|
||||
{
|
||||
ModuleState = Module; // passed in from Pane component
|
||||
container = ModuleState.ContainerType;
|
||||
if (PageState.ModuleId != -1 && PageState.Control != "")
|
||||
{
|
||||
|
@ -84,7 +84,7 @@
|
||||
}
|
||||
}
|
||||
builder.OpenComponent(0, Type.GetType(Constants.DefaultContainer));
|
||||
builder.AddAttribute(1, "ModuleState", module);
|
||||
builder.AddAttribute(1, "Module", module);
|
||||
builder.CloseComponent();
|
||||
}
|
||||
}
|
||||
@ -106,7 +106,7 @@
|
||||
if (UserService.IsAuthorized(PageState.User, module.ViewPermissions))
|
||||
{
|
||||
builder.OpenComponent(0, Type.GetType(Constants.DefaultContainer));
|
||||
builder.AddAttribute(1, "ModuleState", module);
|
||||
builder.AddAttribute(1, "Module", module);
|
||||
builder.CloseComponent();
|
||||
}
|
||||
}
|
||||
@ -119,7 +119,7 @@
|
||||
if (UserService.IsAuthorized(PageState.User, module.ViewPermissions))
|
||||
{
|
||||
builder.OpenComponent(0, Type.GetType(Constants.DefaultContainer));
|
||||
builder.AddAttribute(1, "ModuleState", module);
|
||||
builder.AddAttribute(1, "Module", module);
|
||||
builder.CloseComponent();
|
||||
}
|
||||
}
|
||||
|
@ -234,7 +234,6 @@
|
||||
{
|
||||
// site does not exist
|
||||
}
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
private async void OnLocationChanged(object sender, string AbsoluteUri)
|
||||
|
Reference in New Issue
Block a user