From a66ed2b519328179f39306b79fcd5423776d5aba Mon Sep 17 00:00:00 2001 From: Blesilda Ramirez Date: Sun, 17 Nov 2024 23:59:12 +0800 Subject: [PATCH] pkp/pkp-lib#10444 Improve dialog component design (#87) * pkp/pkp-lib#10444 Fix URL for managing static page in plugins listing * pkp/pkp-lib#10444 Add modalStyle when using dialog component * pkp/pkp-lib#10444 remove modalStyle param when using AjaxModal class --- StaticPagesPlugin.php | 2 +- controllers/grid/StaticPageGridHandler.php | 1 - controllers/grid/StaticPageGridRow.php | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/StaticPagesPlugin.php b/StaticPagesPlugin.php index 4064167..d28d2bc 100644 --- a/StaticPagesPlugin.php +++ b/StaticPagesPlugin.php @@ -200,7 +200,7 @@ public function getActions($request, $actionArgs) null, 'management', 'settings', - 'website', + ['website'], ['uid' => uniqid()], // Force reload 'staticPages' // Anchor for tab )), diff --git a/controllers/grid/StaticPageGridHandler.php b/controllers/grid/StaticPageGridHandler.php index 49f7cfc..517ca5b 100644 --- a/controllers/grid/StaticPageGridHandler.php +++ b/controllers/grid/StaticPageGridHandler.php @@ -89,7 +89,6 @@ public function initialize($request, $args = null) new AjaxModal( $router->url($request, null, null, 'addStaticPage'), __('plugins.generic.staticPages.addStaticPage'), - 'modal_add_item' ), __('plugins.generic.staticPages.addStaticPage'), 'add_item' diff --git a/controllers/grid/StaticPageGridRow.php b/controllers/grid/StaticPageGridRow.php index b8857ec..27c7795 100644 --- a/controllers/grid/StaticPageGridRow.php +++ b/controllers/grid/StaticPageGridRow.php @@ -46,7 +46,7 @@ public function initialize($request, $template = null) new AjaxModal( $router->url($request, null, null, 'editStaticPage', null, ['staticPageId' => $staticPageId]), __('grid.action.edit'), - 'modal_edit', + null, true ), __('grid.action.edit'), @@ -63,7 +63,7 @@ public function initialize($request, $template = null) __('common.confirmDelete'), __('grid.action.delete'), $router->url($request, null, null, 'delete', null, ['staticPageId' => $staticPageId]), - 'modal_delete' + 'negative' ), __('grid.action.delete'), 'delete'