diff --git a/Oqtane.Client/Modules/Admin/ModuleDefinitions/Create.razor b/Oqtane.Client/Modules/Admin/ModuleDefinitions/Create.razor index e1495604..2217d134 100644 --- a/Oqtane.Client/Modules/Admin/ModuleDefinitions/Create.razor +++ b/Oqtane.Client/Modules/Admin/ModuleDefinitions/Create.razor @@ -127,11 +127,18 @@ if (string.IsNullOrEmpty(_description)) _description = _module; if (IsValidXML(_description)) { + if (_type == "Internal") + { + AddModuleMessage(Localizer["Success.Module.Create.Internal"], MessageType.Success); + } var template = _templates.FirstOrDefault(item => item.Name == _template); var moduleDefinition = new ModuleDefinition { Owner = _owner, Name = _module, Description = _description, Template = _template, Version = _reference, ModuleDefinitionName = template.Namespace }; moduleDefinition = await ModuleDefinitionService.CreateModuleDefinitionAsync(moduleDefinition); - GetLocation(); - AddModuleMessage(string.Format(Localizer["Success.Module.Create"], NavigateUrl("admin/system")), MessageType.Success); + if (_type == "External") + { + GetLocation(); + AddModuleMessage(string.Format(Localizer["Success.Module.Create.External"], NavigateUrl("admin/system")), MessageType.Success); + } } else { diff --git a/Oqtane.Client/Modules/Admin/Themes/Create.razor b/Oqtane.Client/Modules/Admin/Themes/Create.razor index 68130ed8..0cb369a2 100644 --- a/Oqtane.Client/Modules/Admin/Themes/Create.razor +++ b/Oqtane.Client/Modules/Admin/Themes/Create.razor @@ -89,8 +89,8 @@ AddModuleMessage(Localizer["Info.Theme.CreatorIntent"], MessageType.Info); } } - - protected override async Task OnParametersSetAsync() + + protected override async Task OnParametersSetAsync() { try { @@ -109,11 +109,18 @@ { if (IsValid(_owner) && IsValid(_theme) && _owner != _theme && _template != "-") { + if (_type == "Internal") + { + AddModuleMessage(Localizer["Success.Theme.Create.Internal"], MessageType.Success); + } var template = _templates.FirstOrDefault(item => item.Name == _template); var theme = new Theme { Owner = _owner, Name = _theme, Template = _template, Version = _reference, ThemeName = template.Namespace }; theme = await ThemeService.CreateThemeAsync(theme); - GetLocation(); - AddModuleMessage(string.Format(Localizer["Success.Theme.Create"], NavigateUrl("admin/system")), MessageType.Success); + if (_type == "External") + { + GetLocation(); + AddModuleMessage(string.Format(Localizer["Success.Theme.Create.External"], NavigateUrl("admin/system")), MessageType.Success); + } } else { diff --git a/Oqtane.Client/Resources/Modules/Admin/ModuleDefinitions/Create.resx b/Oqtane.Client/Resources/Modules/Admin/ModuleDefinitions/Create.resx index 94942a50..7b6a0214 100644 --- a/Oqtane.Client/Resources/Modules/Admin/ModuleDefinitions/Create.resx +++ b/Oqtane.Client/Resources/Modules/Admin/ModuleDefinitions/Create.resx @@ -168,7 +168,10 @@ Location: - + + The Source Code For Your Module Has Been Created In Your Solution And Must Be Compiled In Order To Make It Functional + + The Source Code For Your Module Has Been Created At The Location Specified Below And Must Be Compiled In Order To Make It Functional. Once It Has Been Compiled You Must <a href={0}>Restart</a> Your Application To Activate The Module. diff --git a/Oqtane.Client/Resources/Modules/Admin/Themes/Create.resx b/Oqtane.Client/Resources/Modules/Admin/Themes/Create.resx index cbedd5fa..c14d3d12 100644 --- a/Oqtane.Client/Resources/Modules/Admin/Themes/Create.resx +++ b/Oqtane.Client/Resources/Modules/Admin/Themes/Create.resx @@ -141,7 +141,10 @@ Please Note That The Theme Creator Is Only Intended To Be Used In A Development Environment - + + The Source Code For Your Theme Has Been Created In Your Solution And Must Be Compiled In Order To Make It Functional + + The Source Code For Your Theme Has Been Created At The Location Specified Below And Must Be Compiled In Order To Make It Functional. Once It Has Been Compiled You Must <a href={0}>Restart</a> Your Application To Activate The Theme.