Skip to content

Commit

Permalink
adjust modal message
Browse files Browse the repository at this point in the history
  • Loading branch information
zuk3975 authored and jolelievre committed Dec 16, 2022
1 parent f9bbb52 commit ea0c776
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,16 @@
</button>
{% if isMultistoreActive %}
{% set deleteLabel = 'Delete %combinations_number% combinations for shop "%shop%"'|trans({'%shop%': contextShopName}, 'Admin.Catalog.Feature') %}
{% set modalMessage = 'Are you sure you want to delete selected combinations for shop "%shop%"?'|trans({'%shop%': contextShopName}, 'Admin.Catalog.Notification') %}
{% else %}
{% set deleteLabel = 'Delete %combinations_number% combinations'|trans({}, 'Admin.Catalog.Feature') %}
{% set modalMessage = 'Are you sure you want to delete selected combinations?'|trans({}, 'Admin.Catalog.Notification') %}
{% endif %}
<button
id="combination-bulk-delete-btn" class="dropdown-item bulk-action-btn bulk-delete-btn" type="button"
data-btn-label="{{ deleteLabel }}"
data-form-url="{{ url('admin_products_combinations_bulk_delete', { 'productId': productId }) }}"
data-modal-message="{{ 'Are you sure you want to delete selected combinations?'|trans({}, 'Admin.Catalog.Notification') }}"
data-modal-message="{{ modalMessage }}"
data-modal-confirm-label="{{ 'Delete %combinations_number% combinations'|trans({}, 'Admin.Catalog.Feature') }}"
data-modal-cancel-label="{{ 'Cancel'|trans({}, 'Admin.Actions') }}"
data-bulk-chunk-size="10"
Expand All @@ -75,7 +77,7 @@
id="combination-bulk-delete-btn-all-shops" class="dropdown-item bulk-action-btn bulk-delete-btn" type="button"
data-btn-label="{{ 'Delete %combinations_number% combinations for all shops'|trans({}, 'Admin.Catalog.Feature') }}"
data-form-url="{{ url('admin_products_combinations_bulk_delete', { 'productId': productId }) }}"
data-modal-message="{{ 'Are you sure you want to delete selected combinations?'|trans({}, 'Admin.Catalog.Notification') }}"
data-modal-message="{{ 'Are you sure you want to delete selected combinations for all shops?'|trans({}, 'Admin.Catalog.Notification') }}"
data-modal-confirm-label="{{ 'Delete %combinations_number% combinations'|trans({}, 'Admin.Catalog.Feature') }}"
data-modal-cancel-label="{{ 'Cancel'|trans({}, 'Admin.Actions') }}"
data-bulk-chunk-size="10"
Expand Down

0 comments on commit ea0c776

Please sign in to comment.