extensions-app: Make error/update icon interactive
Both icons are not immediately obvious, and the context provided by the tooltip can be hard to discover. Address this by making the icons interactive, and provide further information in a popover. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3051>
This commit is contained in:

committed by
Marge Bot

parent
b2040b20c7
commit
ed3394a953
@ -361,8 +361,8 @@ var ExtensionRow = GObject.registerClass({
|
||||
'descriptionLabel',
|
||||
'versionLabel',
|
||||
'errorLabel',
|
||||
'errorIcon',
|
||||
'updatesIcon',
|
||||
'errorButton',
|
||||
'updatesButton',
|
||||
'switch',
|
||||
'actionsBox',
|
||||
],
|
||||
@ -503,13 +503,9 @@ var ExtensionRow = GObject.registerClass({
|
||||
if (!action.enabled)
|
||||
this._switch.active = state;
|
||||
|
||||
this._updatesIcon.visible = this.hasUpdate;
|
||||
this._errorIcon.visible = this.hasError;
|
||||
|
||||
this._descriptionLabel.visible = !this.hasError;
|
||||
|
||||
this._updatesButton.visible = this.hasUpdate;
|
||||
this._errorButton.visible = this.hasError;
|
||||
this._errorLabel.label = this.error;
|
||||
this._errorLabel.visible = this.error !== '';
|
||||
|
||||
this._versionLabel.label = this.version.toString();
|
||||
this._versionLabel.visible = this.version !== '';
|
||||
|
Reference in New Issue
Block a user