-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[4.0] Versions Toolbar when button disabled #35761
Conversation
I have tested this item 🔴 unsuccessfully on b632dce This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35761. |
Hi Brian, is it not working or any other issue |
Try it and you will see |
still broken |
I see that I have to be more explicit - I was hoping that you would see at least one of the errors yourself.
Example
|
Updated Thank you |
When we select more than one version to restore or preview, then this message will help Please select one version. |
@rjharishabh , I tested and now the disabled buttons no longer do anything but the error you got previously regarding "Please select one version" does not appear. Also the disabled icon does not seem to show by the cursor at all. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35761. |
Select two versions to preview, then this message will be displayed. |
I've updated the description with a video. |
@rjharishabh The description in issue #35377 mentioned 2 things in expected result:
|
I have not done anything here for the disabled cursor |
@rjharishabh Firefox, Chrome and Edge do not do that, so maybe it is a Safari thing or @PhilETaylor wanted to have some css for that purpose. But for me this PR here is sufficient as it is, because the buttons are properly disabled in HTML when I inspect them, and the pointer does not change like it would when there was an enabled button or link, so it is clear that these buttons are disabled. @PhilETaylor Please report back if you did expect more to be done for solving your issue. Thanks in advance. |
I have tested this item ✅ successfully on 342831d If a wrong number of versions is selected, i.e. one version or more than 2 versions for the Compare button or 2 or more versions for the Preview button, the right error message is still show like it was before. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35761. |
I have tested this item ✅ successfully on 342831d This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35761. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35761. |
Thanks! |
Pull Request for Issue #35377.
Summary of Changes
Add
if
to check and respond only when the button is not disabledTesting Instructions
please see issue
Don't forget to build JS
npm run build:js
Actual result BEFORE applying this Pull Request
Disabled buttons respond
Expected result AFTER applying this Pull Request
Disabled buttons do not respond
preview.mp4
Documentation Changes Required
No