Skip to content

Commit

Permalink
pkp/pkp-lib#10444 Add modalStyle when using dialog component
Browse files Browse the repository at this point in the history
  • Loading branch information
blesildaramirez committed Oct 8, 2024
1 parent 8222089 commit 78f2acc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CustomBlockManagerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions controllers/grid/CustomBlockGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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'
Expand Down

0 comments on commit 78f2acc

Please sign in to comment.