From e22c28a3c950fa8ed08ce481e23bf0c0d70025a9 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Mon, 10 Jul 2023 16:36:37 -0400 Subject: [PATCH] add module name to the Module Settings UI --- Oqtane.Client/Modules/Admin/Modules/Settings.razor | 10 +++++++++- .../Resources/Modules/Admin/Modules/Settings.resx | 6 ++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Oqtane.Client/Modules/Admin/Modules/Settings.razor b/Oqtane.Client/Modules/Admin/Modules/Settings.razor index a3133216..9798c2f9 100644 --- a/Oqtane.Client/Modules/Admin/Modules/Settings.razor +++ b/Oqtane.Client/Modules/Admin/Modules/Settings.razor @@ -14,10 +14,16 @@ @if (_containers != null) {
+
+ +
+ +
+
- +
@@ -104,6 +110,7 @@ private ElementReference form; private bool validated = false; private List _containers = new List(); + private string _module; private string _title; private string _containerType; private string _allPages = "false"; @@ -125,6 +132,7 @@ protected override void OnInitialized() { + _module = ModuleState.ModuleDefinition.Name; _title = ModuleState.Title; _containers = ThemeService.GetContainerControls(PageState.Site.Themes, PageState.Page.ThemeType); _containerType = ModuleState.ContainerType; diff --git a/Oqtane.Client/Resources/Modules/Admin/Modules/Settings.resx b/Oqtane.Client/Resources/Modules/Admin/Modules/Settings.resx index 7cd012dd..db947070 100644 --- a/Oqtane.Client/Resources/Modules/Admin/Modules/Settings.resx +++ b/Oqtane.Client/Resources/Modules/Admin/Modules/Settings.resx @@ -150,4 +150,10 @@ A Problem Was Encountered Loading Module {0}. The Module Is Either Invalid Or Does Not Exist. + + The name of the module + + + Module: + \ No newline at end of file