Skip to content

Commit c64a95e

Browse files
author
Oleksandr Karpenko
committed
MAGETWO-44773: [Product Video] Delete video button has title "Delete Image"
1 parent 205e9fa commit c64a95e

File tree

1 file changed

+12
-2
lines changed
  • app/code/Magento/ProductVideo/view/adminhtml/templates/helper

1 file changed

+12
-2
lines changed

app/code/Magento/ProductVideo/view/adminhtml/templates/helper/gallery.phtml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,18 @@ $elementName = $block->getElement()->getName() . '[images]';
116116
<button type="button"
117117
class="action-delete"
118118
data-role="delete-button"
119-
title="<?php /* @escapeNotVerified */ echo __('Delete video') ?>">
120-
<span> <?php /* @escapeNotVerified */ echo __('Delete video') ?></span >
119+
title="<% if (data.media_type == 'external-video') {%>
120+
<?php /* @escapeNotVerified */ echo __('Delete video') ?>
121+
<%} else {%>
122+
<?php /* @escapeNotVerified */ echo __('Delete image') ?>
123+
<%}%>">
124+
<span>
125+
<% if (data.media_type == 'external-video') { %>
126+
<?php /* @escapeNotVerified */ echo __('Delete video') ?>
127+
<% } else {%>
128+
<?php /* @escapeNotVerified */ echo __('Delete image') ?>
129+
<%} %>
130+
</span >
121131
</button>
122132
<button type="button"
123133
class="action-make-base"

0 commit comments

Comments
 (0)