From 78f2accd9e28bd1177f31324a37f6ccbb9236436 Mon Sep 17 00:00:00 2001 From: Blesilda Ramirez Date: Wed, 9 Oct 2024 01:09:24 +0800 Subject: [PATCH] pkp/pkp-lib#10444 Add modalStyle when using dialog component --- CustomBlockManagerPlugin.php | 3 ++- controllers/grid/CustomBlockGridRow.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CustomBlockManagerPlugin.php b/CustomBlockManagerPlugin.php index 7de8848..9d19f7e 100644 --- a/CustomBlockManagerPlugin.php +++ b/CustomBlockManagerPlugin.php @@ -126,7 +126,8 @@ public function getActions($request, $actionArgs): array 'category' => $this->getCategory(), 'action' => 'index' ]), - $this->getDisplayName() + $this->getDisplayName(), + 'side-modal' ); return array_merge([new LinkAction('settings', $ajaxModal, __('plugins.generic.customBlockManager.manage'))], $actions); } diff --git a/controllers/grid/CustomBlockGridRow.php b/controllers/grid/CustomBlockGridRow.php index 3b36bd1..a6fb36b 100644 --- a/controllers/grid/CustomBlockGridRow.php +++ b/controllers/grid/CustomBlockGridRow.php @@ -46,7 +46,7 @@ public function initialize($request, $template = null) new AjaxModal( $router->url($request, null, null, 'editCustomBlock', null, ['blockName' => $blockName]), __('grid.action.edit'), - 'modal_edit', + 'side-modal', true ), __('grid.action.edit'), @@ -63,7 +63,7 @@ public function initialize($request, $template = null) __('common.confirmDelete'), __('grid.action.delete'), $router->url($request, null, null, 'deleteCustomBlock', null, ['blockName' => $blockName]), - 'modal_delete' + 'negative' ), __('grid.action.delete'), 'delete'