reset control to default value after module added
This commit is contained in:
@ -69,7 +69,7 @@
|
|||||||
}
|
}
|
||||||
</select>
|
</select>
|
||||||
<select class="form-control" @bind="@moduleid">
|
<select class="form-control" @bind="@moduleid">
|
||||||
<option value=""><Select Module></option>
|
<option value="-"><Select Module></option>
|
||||||
@foreach (Module module in modules)
|
@foreach (Module module in modules)
|
||||||
{
|
{
|
||||||
<option value="@module.ModuleId">@module.Title</option>
|
<option value="@module.ModuleId">@module.Title</option>
|
||||||
@ -150,7 +150,7 @@
|
|||||||
List<ModuleDefinition> moduledefinitions;
|
List<ModuleDefinition> moduledefinitions;
|
||||||
List<Page> pages;
|
List<Page> pages;
|
||||||
string pageid = "";
|
string pageid = "";
|
||||||
string moduleid = "";
|
string moduleid = "-";
|
||||||
List<Module> modules = new List<Module>();
|
List<Module> modules = new List<Module>();
|
||||||
Dictionary<string, string> containers = new Dictionary<string, string>();
|
Dictionary<string, string> containers = new Dictionary<string, string>();
|
||||||
string moduledefinitionname = "-";
|
string moduledefinitionname = "-";
|
||||||
@ -225,7 +225,7 @@
|
|||||||
pageid = (string)e.Value;
|
pageid = (string)e.Value;
|
||||||
if (pageid != "")
|
if (pageid != "")
|
||||||
{
|
{
|
||||||
foreach(Module module in PageState.Modules.Where(item => item.PageId == int.Parse(pageid)))
|
foreach(Module module in PageState.Modules.Where(item => item.PageId == int.Parse(pageid) && !item.IsDeleted))
|
||||||
{
|
{
|
||||||
if (UserSecurity.IsAuthorized(PageState.User, "View", module.Permissions))
|
if (UserSecurity.IsAuthorized(PageState.User, "View", module.Permissions))
|
||||||
{
|
{
|
||||||
@ -233,7 +233,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
moduleid = "";
|
moduleid = "-";
|
||||||
StateHasChanged();
|
StateHasChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -280,6 +280,12 @@
|
|||||||
|
|
||||||
message = "<br /><div class=\"alert alert-success\" role=\"alert\">Module Added To Page</div>";
|
message = "<br /><div class=\"alert alert-success\" role=\"alert\">Module Added To Page</div>";
|
||||||
|
|
||||||
|
moduledefinitionname = "-";
|
||||||
|
pane = "";
|
||||||
|
title = "";
|
||||||
|
containertype = "";
|
||||||
|
moduleid = "-";
|
||||||
|
|
||||||
NavigationManager.NavigateTo(NavigateUrl(Reload.Page));
|
NavigationManager.NavigateTo(NavigateUrl(Reload.Page));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user