implement new AddModuleMessage

This commit is contained in:
Shaun Walker
2019-09-25 14:26:18 -04:00
parent 07c00765ac
commit bf452eedf5
8 changed files with 19 additions and 42 deletions

View File

@ -4,8 +4,6 @@
@inject IPageService PageService
@inject IThemeService ThemeService
<ModuleMessage Message="@message" />
<table class="table table-borderless">
<tr>
<td>
@ -113,8 +111,6 @@
@code {
public override SecurityAccessLevel SecurityAccessLevel { get { return SecurityAccessLevel.Admin; } }
string message = "";
Dictionary<string, string> themes = new Dictionary<string, string>();
Dictionary<string, string> panelayouts = new Dictionary<string, string>();
@ -162,7 +158,7 @@
}
catch (Exception ex)
{
message = ex.Message;
ModuleInstance.AddModuleMessage(ex.Message, MessageType.Error);
}
}
@ -175,7 +171,7 @@
}
catch (Exception ex)
{
message = ex.Message;
ModuleInstance.AddModuleMessage(ex.Message, MessageType.Error);
}
}
}