mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 02:35:41 +00:00
Bug 1575704 - Redirect to Sync preferences in Send Tab sign-in button. r=vbudhram
Differential Revision: https://phabricator.services.mozilla.com/D44251 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
776d03bd30
commit
b176311275
@ -787,19 +787,18 @@ var gSync = {
|
||||
const fragment = document.createDocumentFragment();
|
||||
|
||||
const state = UIState.get();
|
||||
if (
|
||||
state.status == UIState.STATUS_SIGNED_IN &&
|
||||
this.sendTabTargets.length > 0
|
||||
) {
|
||||
this._appendSendTabDeviceList(
|
||||
fragment,
|
||||
createDeviceNodeFn,
|
||||
url,
|
||||
title,
|
||||
multiselected
|
||||
);
|
||||
} else if (state.status == UIState.STATUS_SIGNED_IN) {
|
||||
this._appendSendTabSingleDevice(fragment, createDeviceNodeFn);
|
||||
if (state.status == UIState.STATUS_SIGNED_IN) {
|
||||
if (this.sendTabTargets.length > 0) {
|
||||
this._appendSendTabDeviceList(
|
||||
fragment,
|
||||
createDeviceNodeFn,
|
||||
url,
|
||||
title,
|
||||
multiselected
|
||||
);
|
||||
} else {
|
||||
this._appendSendTabSingleDevice(fragment, createDeviceNodeFn);
|
||||
}
|
||||
} else if (
|
||||
state.status == UIState.STATUS_NOT_VERIFIED ||
|
||||
state.status == UIState.STATUS_LOGIN_FAILED
|
||||
|
@ -785,7 +785,7 @@
|
||||
<toolbarbutton id="PanelUI-fxa-menu-sendtab-not-configured-button"
|
||||
class="PanelUI-fxa-signin-button"
|
||||
label="&fxa.menu.signin.label;"
|
||||
oncommand="gSync.openFxAEmailFirstPageFromFxaMenu(this);"/>
|
||||
oncommand="gSync.openPrefsFromFxaMenu('send_tab', this);"/>
|
||||
</vbox>
|
||||
</panelview>
|
||||
<panelview id="PanelUI-fxa-menu-sendtab-no-devices" flex="1" class="PanelUI-subView">
|
||||
|
Loading…
Reference in New Issue
Block a user