Skip to content

Commit

Permalink
#29715: Corrected actions order
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko committed Sep 4, 2020
1 parent 7b58d97 commit 90c9dac
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/code/Magento/MediaGalleryUi/Block/Adminhtml/ImageDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,6 @@ public function getActionsJson(): string
]
];

if ($this->authorization->isAllowed('Magento_MediaGalleryUiApi::edit_assets')) {
$actions[] = [
'title' => __('Edit Details'),
'handler' => 'editImageAction',
'name' => 'edit',
'classes' => 'action-default scalable edit action-quaternary'
];
}

if ($this->authorization->isAllowed('Magento_MediaGalleryUiApi::delete_assets')) {
$actions[] = [
'title' => __('Delete Image'),
Expand All @@ -84,6 +75,15 @@ public function getActionsJson(): string
];
}

if ($this->authorization->isAllowed('Magento_MediaGalleryUiApi::edit_assets')) {
$actions[] = [
'title' => __('Edit Details'),
'handler' => 'editImageAction',
'name' => 'edit',
'classes' => 'action-default scalable edit action-quaternary'
];
}

if ($this->authorization->isAllowed('Magento_MediaGalleryUiApi::insert_assets')) {
$actions[] = [
'title' => __('Add Image'),
Expand Down

0 comments on commit 90c9dac

Please sign in to comment.