NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
22 Jun 2021

Pull Request for Issue #34204.

Summary of Changes

Replace the link to toggle all selection with a checkbox.

Testing Instructions

  • Go to /administrator/index.php?option=com_media
  • Click the toggle all selection link

Actual result BEFORE applying this Pull Request

All items are selected.

Expected result AFTER applying this Pull Request

All items are selected.

avatar laoneo laoneo - open - 22 Jun 2021
avatar laoneo laoneo - change - 22 Jun 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Jun 2021
Category Administration com_media NPM Change Repository
avatar laoneo laoneo - change - 22 Jun 2021
Labels Added: NPM Resource Changed ?
avatar brianteeman
brianteeman - comment - 22 Jun 2021

Almost perfect.

Checking the box correctly selects all but when you do anything else afterwards which changes the selection the box remains checked. Which means you have to click it about three times to select all again

demo

2e812fc 23 Jun 2021 avatar laoneo CS
avatar brianteeman
brianteeman - comment - 23 Jun 2021

Still not right

demo

avatar laoneo
laoneo - comment - 24 Jun 2021

Ok, figured it out, the problem is that preventDefault should not be called, otherwise the checkbox is not selected. If somebody else will come across this one, it is needed to stop propagation because of event listener here https://github.com/joomla/joomla-cms/blob/4.0-dev/administrator/components/com_media/resources/scripts/components/browser/browser.vue#L173. So we are not unselecting all of the items first which would result in an extra call. A side effect would be that the checkbox can't be watched and unselected when a single item gets selected.

avatar laoneo
laoneo - comment - 24 Jun 2021

@brianteeman check again.

avatar brianteeman brianteeman - test_item - 24 Jun 2021 - Tested successfully
avatar brianteeman
brianteeman - comment - 24 Jun 2021

I have tested this item successfully on 5f45fee

woohoo


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34597.

avatar dgrammatiko dgrammatiko - test_item - 24 Jun 2021 - Tested successfully
avatar dgrammatiko
dgrammatiko - comment - 24 Jun 2021

I have tested this item successfully on 5f45fee


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34597.

avatar chmst chmst - change - 24 Jun 2021
Status Pending Ready to Commit
avatar chmst
chmst - comment - 24 Jun 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34597.

avatar richard67 richard67 - change - 24 Jun 2021
Status Ready to Commit Pending
avatar richard67
richard67 - comment - 24 Jun 2021

Back to pending. @laoneo Please fix code style errors reported here: https://ci.joomla.org/joomla/joomla-cms/45335/1/21


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34597.

avatar laoneo laoneo - change - 25 Jun 2021
Labels Added: ?
avatar laoneo
laoneo - comment - 25 Jun 2021

@richard67 cs fixed...

avatar richard67 richard67 - alter_testresult - 25 Jun 2021 - brianteeman: Tested successfully
avatar richard67 richard67 - alter_testresult - 25 Jun 2021 - dgrammatiko: Tested successfully
avatar richard67 richard67 - change - 25 Jun 2021
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 25 Jun 2021

I've restored the previous test results in the issue tracker since the commit which invalidated the test count was just code style.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34597.

avatar bembelimen bembelimen - change - 2 Jul 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-07-02 13:14:03
Closed_By bembelimen
Labels Added: ?
Removed: ?
avatar bembelimen bembelimen - close - 2 Jul 2021
avatar bembelimen bembelimen - merge - 2 Jul 2021
avatar bembelimen
bembelimen - comment - 2 Jul 2021

Thank you!

Add a Comment

Login with GitHub to post a comment