reset control to default value after module added
This commit is contained in:
parent
3ab47c63e7
commit
6cb64b5ad6
@ -69,7 +69,7 @@
|
||||
}
|
||||
</select>
|
||||
<select class="form-control" @bind="@moduleid">
|
||||
<option value=""><Select Module></option>
|
||||
<option value="-"><Select Module></option>
|
||||
@foreach (Module module in modules)
|
||||
{
|
||||
<option value="@module.ModuleId">@module.Title</option>
|
||||
@ -150,7 +150,7 @@
|
||||
List<ModuleDefinition> moduledefinitions;
|
||||
List<Page> pages;
|
||||
string pageid = "";
|
||||
string moduleid = "";
|
||||
string moduleid = "-";
|
||||
List<Module> modules = new List<Module>();
|
||||
Dictionary<string, string> containers = new Dictionary<string, string>();
|
||||
string moduledefinitionname = "-";
|
||||
@ -225,7 +225,7 @@
|
||||
pageid = (string)e.Value;
|
||||
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))
|
||||
{
|
||||
@ -233,7 +233,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
moduleid = "";
|
||||
moduleid = "-";
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
@ -280,6 +280,12 @@
|
||||
|
||||
message = "<br /><div class=\"alert alert-success\" role=\"alert\">Module Added To Page</div>";
|
||||
|
||||
moduledefinitionname = "-";
|
||||
pane = "";
|
||||
title = "";
|
||||
containertype = "";
|
||||
moduleid = "-";
|
||||
|
||||
NavigationManager.NavigateTo(NavigateUrl(Reload.Page));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user