diff --git a/Oqtane.Client/Themes/Controls/Container/ModuleActions.razor b/Oqtane.Client/Themes/Controls/Container/ModuleActions.razor
index a651f0481..d7ac8ed81 100644
--- a/Oqtane.Client/Themes/Controls/Container/ModuleActions.razor
+++ b/Oqtane.Client/Themes/Controls/Container/ModuleActions.razor
@@ -1,45 +1,15 @@
@namespace Oqtane.Themes.Controls
-@inherits ModuleActionsBase
+@inherits ContainerBase
@attribute [OqtaneIgnore]
@if (PageState.EditMode && UserSecurity.IsAuthorized(PageState.User, PermissionNames.Edit, PageState.Page.PermissionList) && PageState.Action == Constants.DefaultAction)
{
-
+ @if (PageState.Site.RenderMode == RenderModes.Interactive)
+ {
+
+ }
+ else
+ {
+
+ }
}
diff --git a/Oqtane.Client/Themes/Controls/Container/ModuleActionsBase.cs b/Oqtane.Client/Themes/Controls/Container/ModuleActionsBase.cs
index fb61b7145..75394add0 100644
--- a/Oqtane.Client/Themes/Controls/Container/ModuleActionsBase.cs
+++ b/Oqtane.Client/Themes/Controls/Container/ModuleActionsBase.cs
@@ -7,18 +7,22 @@
using Oqtane.Security;
using Oqtane.Services;
using Oqtane.Shared;
+using Oqtane.UI;
// ReSharper disable UnassignedGetOnlyAutoProperty
// ReSharper disable MemberCanBePrivate.Global
namespace Oqtane.Themes.Controls
{
- public class ModuleActionsBase : ContainerBase
+ public class ModuleActionsBase : ComponentBase
{
[Inject] public NavigationManager NavigationManager { get; set; }
[Inject] public IPageModuleService PageModuleService { get; set; }
[Inject] public IModuleService ModuleService { get; set; }
+ [Parameter] public PageState PageState { get; set; }
+ [Parameter] public Module ModuleState { get; set; }
+
public List Actions;
protected override void OnParametersSet()
@@ -88,7 +92,7 @@ protected virtual List GetActions()
private async Task EditUrlAsync(string url, int moduleId, string import)
{
await Task.Yield();
- return EditUrl(moduleId, import);
+ return Utilities.EditUrl(PageState.Alias.Path, PageState.Page.Path, moduleId, import, "");
}
protected async Task ModuleAction(ActionViewModel action)
@@ -97,7 +101,7 @@ protected async Task ModuleAction(ActionViewModel action)
{
PageModule pagemodule = await PageModuleService.GetPageModuleAsync(ModuleState.PageModuleId);
- string url = NavigateUrl(true);
+ string url = Utilities.NavigateUrl(PageState.Alias.Path, PageState.Page.Path, "refresh");
if (action.Action != null)
{
@@ -130,7 +134,7 @@ private async Task DeleteModule(string url, PageModule pagemodule)
private async Task Settings(string url, PageModule pagemodule)
{
await Task.Yield();
- url = EditUrl(pagemodule.ModuleId, "Settings");
+ url = Utilities.EditUrl(PageState.Alias.Path, PageState.Page.Path, pagemodule.ModuleId, "Settings", "");
return url;
}
diff --git a/Oqtane.Client/Themes/Controls/Container/ModuleActionsInteractive.razor b/Oqtane.Client/Themes/Controls/Container/ModuleActionsInteractive.razor
new file mode 100644
index 000000000..c83c701b5
--- /dev/null
+++ b/Oqtane.Client/Themes/Controls/Container/ModuleActionsInteractive.razor
@@ -0,0 +1,42 @@
+@namespace Oqtane.Themes.Controls
+@inherits ModuleActionsBase
+@attribute [OqtaneIgnore]
+
+
\ No newline at end of file