fix issue #135 and #131

This commit is contained in:
Shaun Walker 2019-10-17 09:21:42 -04:00
parent 1719270e7a
commit 82af078677

View File

@ -162,7 +162,7 @@
string cardclass = "text-white bg-secondary"; string cardclass = "text-white bg-secondary";
string message = ""; string message = "";
protected override async Task OnInitializedAsync() protected override async Task OnParametersSetAsync()
{ {
if (!string.IsNullOrEmpty(ButtonClass)) if (!string.IsNullOrEmpty(ButtonClass))
{ {
@ -257,7 +257,8 @@
PageModule pagemodule = new PageModule(); PageModule pagemodule = new PageModule();
pagemodule.PageId = PageState.Page.PageId; pagemodule.PageId = PageState.Page.PageId;
pagemodule.ModuleId = int.Parse(moduleid); pagemodule.ModuleId = int.Parse(moduleid);
if (title == "") pagemodule.Title = title;
if (pagemodule.Title == "")
{ {
if (moduletype == "new") if (moduletype == "new")
{ {