commit
715325e66f
|
@ -304,7 +304,7 @@
|
||||||
SettingService.SetSetting(settings, "SMTPSSL", smtpssl);
|
SettingService.SetSetting(settings, "SMTPSSL", smtpssl);
|
||||||
SettingService.SetSetting(settings, "SMTPUsername", smtpusername);
|
SettingService.SetSetting(settings, "SMTPUsername", smtpusername);
|
||||||
SettingService.SetSetting(settings, "SMTPPassword", smtppassword);
|
SettingService.SetSetting(settings, "SMTPPassword", smtppassword);
|
||||||
await SettingService.UpdateModuleSettingsAsync(settings, site.SiteId);
|
await SettingService.UpdateSiteSettingsAsync(settings, site.SiteId);
|
||||||
|
|
||||||
await logger.LogInformation("Site Saved {Site}", site);
|
await logger.LogInformation("Site Saved {Site}", site);
|
||||||
|
|
||||||
|
|
|
@ -39,17 +39,23 @@
|
||||||
if (typename != null)
|
if (typename != null)
|
||||||
{
|
{
|
||||||
moduleType = Type.GetType(typename);
|
moduleType = Type.GetType(typename);
|
||||||
}
|
|
||||||
if (moduleType != null)
|
if (moduleType != null)
|
||||||
{
|
{
|
||||||
builder.OpenComponent(0, moduleType);
|
builder.OpenComponent(0, moduleType);
|
||||||
builder.CloseComponent();
|
builder.CloseComponent();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// module does not exist with typename specified
|
||||||
|
message = "Module Does Not Have A Component Named " + Utilities.GetTypeNameLastSegment(typename, 0) + ".razor";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// module does not exist with typename specified
|
message = "Something is wrong with moduletype";
|
||||||
message = "Module Does Not Have A Component Named " + Utilities.GetTypeNameLastSegment(typename, 0) + ".razor";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -408,7 +408,7 @@
|
||||||
if (module.PageId == pageid)
|
if (module.PageId == pageid)
|
||||||
{
|
{
|
||||||
// ensure module's pane exists in current page and if not, assign it to the Admin pane
|
// ensure module's pane exists in current page and if not, assign it to the Admin pane
|
||||||
if (!panes.ToLower().Contains(module.Pane.ToLower()))
|
if (panes == null || !panes.ToLower().Contains(module.Pane.ToLower()))
|
||||||
{
|
{
|
||||||
module.Pane = Constants.AdminPane;
|
module.Pane = Constants.AdminPane;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>netcoreapp3.0</TargetFramework>
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user