Add Edit Mode for Administration

This commit is contained in:
Shaun Walker
2019-09-04 11:07:48 -04:00
parent 1e4c07889b
commit e1cc1ce973
14 changed files with 253 additions and 192 deletions

View File

@ -86,11 +86,13 @@
List<Module> modules;
int moduleid = -1;
string control = "";
bool editmode = false;
int reload = 0;
if (PageState != null)
{
reload = PageState.Reload;
editmode = PageState.EditMode;
}
if (PageState == null || reload == Constants.ReloadApplication)
@ -188,6 +190,7 @@
{
page = pages.Where(item => item.Path == path).FirstOrDefault();
reload = Constants.ReloadPage;
editmode = false;
}
user = null;
@ -238,6 +241,7 @@
modules = PageState.Modules;
}
pagestate.Modules = modules;
pagestate.EditMode = editmode;
pagestate.Reload = 0;
OnStateChange?.Invoke(pagestate);