summaryrefslogtreecommitdiff
path: root/src/osmAccountDialog.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmAccountDialog.js')
-rw-r--r--src/osmAccountDialog.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/osmAccountDialog.js b/src/osmAccountDialog.js
index 1e83835d..b7359a40 100644
--- a/src/osmAccountDialog.js
+++ b/src/osmAccountDialog.js
@@ -126,7 +126,7 @@ export class OSMAccountDialog extends Gtk.Dialog {
}
} else {
if (errorMessage)
- Utils.showDialog(errorMessage, Gtk.MessageType.ERROR, this);
+ Utils.showToastInOverlay(errorMessage, this._overlay);
/* switch back to the sign-in view, and show a label indicating
that verification failed */
this._errorLabel.visible = true;
@@ -154,5 +154,6 @@ GObject.registerClass({
'verifyButton',
'errorLabel',
'signedInUserLabel',
- 'signOutButton'],
+ 'signOutButton',
+ 'overlay'],
}, OSMAccountDialog);