Skip to content

Commit e605dbe

Browse files
committed
Fix wrong attributes used in refund order js
1 parent c919a38 commit e605dbe

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

assets/js/refund-button.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
document.addEventListener('DOMContentLoaded', function () {
22
const refundButtons = document.querySelectorAll('[data-refund]');
3-
const refundAllButton = document.querySelector('[data-test-refund-all]');
4-
const refundClearAllButton = document.querySelector('[data-test-clear-all]');
3+
const refundAllButton = document.querySelector('[data-refund-all]');
4+
const refundClearAllButton = document.querySelector('[data-clear-all]');
55
const refundInputs = document.querySelectorAll('[data-refund-input]');
66

77
refundButtons.forEach(function (button) {

templates/admin/order/refund/content/header/title_block/actions/clear_all.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% set disable_button = hookable_metadata.context.disable_button %}
22

3-
<button type="submit" class="dropdown-item" {{ sylius_test_html_attribute('clear-all') }} {{ disable_button }}>
3+
<button data-refund-clear type="submit" class="dropdown-item" {{ sylius_test_html_attribute('clear-all') }} {{ disable_button }}>
44
{{ ux_icon('tabler:circle-check', {'class': 'icon dropdown-item-icon'}) }}
55
{{ 'sylius_refund.ui.clear_refunds'|trans }}
66
</button>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% set disable_button = hookable_metadata.context.disable_button %}
22

3-
<button type="submit" class="dropdown-item" {{ sylius_test_html_attribute('refund-all') }} {{ disable_button }}>
3+
<button data-refund-all type="submit" class="dropdown-item" {{ sylius_test_html_attribute('refund-all') }} {{ disable_button }}>
44
{{ ux_icon('tabler:repeat', {'class': 'icon dropdown-item-icon'}) }}
55
{{ 'sylius_refund.ui.refund_all'|trans }}
66
</button>

0 commit comments

Comments
 (0)