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:
Shaun Walker
2019-06-14 17:24:52 -04:00
parent d04f3083a8
commit 600872d0b0
10 changed files with 105 additions and 18 deletions

View File

@ -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 != "")
{

View File

@ -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();
}
}

View File

@ -234,7 +234,6 @@
{
// site does not exist
}
StateHasChanged();
}
private async void OnLocationChanged(object sender, string AbsoluteUri)