Skip to content

Commit 90c9dac

Browse files
committed
#29715: Corrected actions order
1 parent 7b58d97 commit 90c9dac

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

app/code/Magento/MediaGalleryUi/Block/Adminhtml/ImageDetails.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,6 @@ public function getActionsJson(): string
6666
]
6767
];
6868

69-
if ($this->authorization->isAllowed('Magento_MediaGalleryUiApi::edit_assets')) {
70-
$actions[] = [
71-
'title' => __('Edit Details'),
72-
'handler' => 'editImageAction',
73-
'name' => 'edit',
74-
'classes' => 'action-default scalable edit action-quaternary'
75-
];
76-
}
77-
7869
if ($this->authorization->isAllowed('Magento_MediaGalleryUiApi::delete_assets')) {
7970
$actions[] = [
8071
'title' => __('Delete Image'),
@@ -84,6 +75,15 @@ public function getActionsJson(): string
8475
];
8576
}
8677

78+
if ($this->authorization->isAllowed('Magento_MediaGalleryUiApi::edit_assets')) {
79+
$actions[] = [
80+
'title' => __('Edit Details'),
81+
'handler' => 'editImageAction',
82+
'name' => 'edit',
83+
'classes' => 'action-default scalable edit action-quaternary'
84+
];
85+
}
86+
8787
if ($this->authorization->isAllowed('Magento_MediaGalleryUiApi::insert_assets')) {
8888
$actions[] = [
8989
'title' => __('Add Image'),

0 commit comments

Comments
 (0)