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:
Edouard Oger 2019-09-03 15:40:29 +00:00
parent 776d03bd30
commit b176311275
2 changed files with 13 additions and 14 deletions

View File

@ -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

View File

@ -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">