Bug 1157526 - (Part 1) Replace "New tab" toast with snackbar. r=mcomella

This commit is contained in:
Sebastian Kaspari 2015-11-09 20:43:54 +01:00
parent 4c5cfc3859
commit 194c185b7b

View File

@ -682,9 +682,9 @@ var BrowserApp = {
let newtabStrings = Strings.browser.GetStringFromName("newtabpopup.opened");
let label = PluralForm.get(1, newtabStrings).replace("#1", 1);
let buttonLabel = Strings.browser.GetStringFromName("newtabpopup.switch");
NativeWindow.toast.show(label, "long", {
button: {
icon: "drawable://switch_button_icon",
Snackbars.show(label, Snackbars.LENGTH_LONG, {
action: {
label: buttonLabel,
callback: () => { BrowserApp.selectTab(tab); },
}