mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1157526 - (Part 6) Replace "Already signed in" toast with snackbar. r=mcomella
This commit is contained in:
parent
f91a2a1879
commit
6084fb25a5
@ -37,6 +37,8 @@ const PREF_LAST_FXA_USER = "identity.fxaccounts.lastSignedInUserHash";
|
||||
XPCOMUtils.defineLazyGetter(this, "strings",
|
||||
() => Services.strings.createBundle("chrome://browser/locale/aboutAccounts.properties")); /*global strings */
|
||||
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "Snackbars", "resource://gre/modules/Snackbars.jsm");
|
||||
|
||||
Object.defineProperty(this, "NativeWindow",
|
||||
{ get: () => Services.wm.getMostRecentWindow("navigator:browser").NativeWindow }); /*global NativeWindow */
|
||||
|
||||
@ -221,9 +223,8 @@ this.FxAccountsWebChannel.prototype = {
|
||||
log.w("Not relinking existing Android Account: email addresses disagree!");
|
||||
let message = strings.GetStringFromName("relinkDenied.message");
|
||||
let buttonLabel = strings.GetStringFromName("relinkDenied.openPrefs");
|
||||
NativeWindow.toast.show(message, "long", {
|
||||
button: {
|
||||
icon: "drawable://switch_button_icon",
|
||||
Snackbars.show(message, Snackbars.LENGTH_LONG, {
|
||||
action: {
|
||||
label: buttonLabel,
|
||||
callback: () => {
|
||||
// We have an account, so this opens Sync native preferences.
|
||||
|
Loading…
Reference in New Issue
Block a user