Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EZP-31602: Moving to trash confirmation modal is not updated after sub-items bulk move #1744

Conversation

lucasOsti
Copy link
Contributor

@lucasOsti lucasOsti commented Apr 26, 2021

Question Answer
Tickets https://issues.ibexa.co/browse/EZP-31602
Related to ezsystems/ezplatform-admin-ui-modules#289
Bug fix? yes
New feature? no
BC breaks? no
Tests pass? no
Doc needed? no
License GPL-2.0

Checklist:

  • Coding standards ($ composer fix-cs)
  • Ready for Code Review

@@ -7,6 +7,7 @@
const sortContainer = doc.querySelector('[data-sort-field][data-sort-order]');
const sortField = sortContainer.getAttribute('data-sort-field');
const sortOrder = sortContainer.getAttribute('data-sort-order');
const contentName = doc.querySelector('.ez-sil').dataset.contentName;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think this should be in the subitems div. This should be stored in the modal itself to be independent.

@lucasOsti lucasOsti requested a review from dew326 April 27, 2021 09:04

modalBody.innerHTML = message;
modalSendToTrashButton.toggleAttribute('disabled', false);
modalSendToTrashButton.classList.toggle('disabled', false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove instead of toggle

);

modalBody.innerHTML = message;
modalSendToTrashButton.toggleAttribute('disabled', false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removeattribute instead of toggleattribute

@@ -118,6 +118,36 @@

$(SELECTOR_MODAL_BULK_ACTION_FAIL).modal('show');
};
const refreshTrashModal = (event) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@kacper-wieczorek-ibexa kacper-wieczorek-ibexa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA Approve - tested on 2.5
Tests on v3 after merge-up

@lserwatka
Copy link
Member

@mnocon same here, it is failing.

@lserwatka lserwatka merged commit 07b8ba8 into ezsystems:1.5 May 5, 2021
@lserwatka
Copy link
Member

You can merge it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
6 participants