From 6b51434b2d8f73977eae79a0607bb9a4b3538ada Mon Sep 17 00:00:00 2001 From: gdlcf88 Date: Fri, 12 Jul 2024 00:15:24 +0800 Subject: [PATCH] Added `alert` variable for the onClick callback --- common.props | 2 +- .../ProcessManagementWebUnifiedModule.cs | 2 +- .../Components/NotificationsOffcanvasWidget/Default.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common.props b/common.props index 1d2d877..0c774e6 100644 --- a/common.props +++ b/common.props @@ -1,7 +1,7 @@ latest - 1.0.0-preview.9 + 1.0.0-preview.10 $(NoWarn);CS1591;CS0436 module true diff --git a/host/EasyAbp.ProcessManagement.Web.Unified/ProcessManagementWebUnifiedModule.cs b/host/EasyAbp.ProcessManagement.Web.Unified/ProcessManagementWebUnifiedModule.cs index cc83e44..566584b 100644 --- a/host/EasyAbp.ProcessManagement.Web.Unified/ProcessManagementWebUnifiedModule.cs +++ b/host/EasyAbp.ProcessManagement.Web.Unified/ProcessManagementWebUnifiedModule.cs @@ -140,7 +140,7 @@ public override void ConfigureServices(ServiceConfigurationContext context) options.Actions.Add(new ProcessStateActionDefinition("FakeExport", "ExportFailed", new LocalizableString("Action:Retry"), "var l = abp.localization.getResource();abp.message.confirm(l('SureToRetry')).then(function(confirmed){if(confirmed){abp.notify.success(l('SuccessToRetry'),l('Success'));}});", - "var l = abp.localization.getResource();abp.message.confirm(l('SureToRetry')).then(function(confirmed){if(confirmed){abp.notify.success(l('SuccessToRetry'),l('Success'));var alert=new bootstrap.Alert(alertNode);alert.close();}})", + "var l = abp.localization.getResource();abp.message.confirm(l('SureToRetry')).then(function(confirmed){if(confirmed){abp.notify.success(l('SuccessToRetry'),l('Success'));alert.close();}})", "abp.auth.isGranted('Demo.Exporting.Retry')")); options.Actions.Add(new ProcessStateActionDefinition("FakeExport", "ExportFailed", diff --git a/src/EasyAbp.ProcessManagement.Web/Components/NotificationsOffcanvasWidget/Default.js b/src/EasyAbp.ProcessManagement.Web/Components/NotificationsOffcanvasWidget/Default.js index 8f9d70a..9a1dbc5 100644 --- a/src/EasyAbp.ProcessManagement.Web/Components/NotificationsOffcanvasWidget/Default.js +++ b/src/EasyAbp.ProcessManagement.Web/Components/NotificationsOffcanvasWidget/Default.js @@ -72,7 +72,7 @@ for (var i in notificationOffcanvasAlertActions) { var action = notificationOffcanvasAlertActions[i]; if (!action.visible(item)) continue; - var actionBtn = `` + var actionBtn = `` actionBtns += actionBtn; } return $(`