Opened 8 years ago
Closed 7 years ago
#44743 closed defect (bug) (wontfix)
Try Gutenberg Callout: broken UI when clicking multiple times on Install Classic Editor
| Reported by: | mathieuhays | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 4.9.8 |
| Severity: | normal | Keywords: | has-screenshots |
| Cc: | Focuses: | ui |
Description
Steps to reproduce:
- Click on "Install Classic Editor"
- Button changes to "Installing..."
- Click again on the button (nothing visual happens at that point, still installing)
- Button changes to "Activate Classic Editor" with the progress icon (rotating arrows) still showing. An error message is also displayed mentioning the directory already exist.
How to fix:
Prevent the button callback to send another install request if it's already installing.
Attachments (2)
Change History (6)
#1
@
8 years ago
- Keywords has-screenshots needs-patch added
I can confirm that this issue exists. Screenshot coming
#2
@
8 years ago
- Keywords dev-feedback added
A possible solution could be if we can make the button non-clickable further during the installation is in progress like @mathieuhays suggested.
Prevent the button callback to send another install request if it's already installing.
The problem this is not a button, a hyperlink instead. So we cannot use conventional disable attribute here.
Using CSS3 property pointer-events: none along with a cursor: default; had worked for me in both Chrome and Firefox.
File: /wp-admin/js/updates.js
wp.updates.installPlugin = function( args ) {
[...]
if( 'dashboard' === pagenow && 'classic-editor' === args.slug ) {
$message.attr( 'style', 'pointer-events: none; cursor: default;' );
}
[...]
}
#4
@
7 years ago
- Keywords needs-patch dev-feedback removed
- Milestone Awaiting Review
- Resolution → wontfix
- Status new → closed
As the Try Gutenberg Callout was deprecated in WP5.0 I'm going to close this as no longer applicable.
Changeset - https://core.trac.wordpress.org/changeset/44106
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Try Gutenberg Callout: Broken UI