зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1537648 - remove change avatar button from FxA menu r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D24527 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
ca7277b3cc
Коммит
a94082a5db
|
@ -478,11 +478,6 @@ var gSync = {
|
||||||
switchToTabHavingURI(url, true, { replaceQueryString: true });
|
switchToTabHavingURI(url, true, { replaceQueryString: true });
|
||||||
},
|
},
|
||||||
|
|
||||||
async openFxAChangeAvatar(entryPoint) {
|
|
||||||
const url = await FxAccounts.config.promiseChangeAvatarURI(entryPoint);
|
|
||||||
switchToTabHavingURI(url, true, { replaceQueryString: true });
|
|
||||||
},
|
|
||||||
|
|
||||||
async openFxAEmailFirstPage(entryPoint) {
|
async openFxAEmailFirstPage(entryPoint) {
|
||||||
const url = await FxAccounts.config.promiseEmailFirstURI(entryPoint);
|
const url = await FxAccounts.config.promiseEmailFirstURI(entryPoint);
|
||||||
switchToTabHavingURI(url, true, { replaceQueryString: true });
|
switchToTabHavingURI(url, true, { replaceQueryString: true });
|
||||||
|
|
|
@ -737,10 +737,8 @@
|
||||||
<toolbarbutton class="PanelUI-fxa-signin-button" label="&fxa.unverified.button.label;" oncommand="gSync.openPrefs('fxa_discoverability_native');"/>
|
<toolbarbutton class="PanelUI-fxa-signin-button" label="&fxa.unverified.button.label;" oncommand="gSync.openPrefs('fxa_discoverability_native');"/>
|
||||||
</vbox>
|
</vbox>
|
||||||
<vbox id="PanelUI-fxa-menu">
|
<vbox id="PanelUI-fxa-menu">
|
||||||
<hbox flex="1" pack="center" class="fxa-avatar-subpanel">
|
<hbox flex="1" align="center" class="fxa-avatar-subpanel">
|
||||||
<toolbarbutton align="left" oncommand="gSync.openFxAChangeAvatar('fxa_discoverability_native');">
|
<image role="presentation" id="fxa-menu-avatar"/>
|
||||||
<image id="fxa-menu-avatar"/>
|
|
||||||
</toolbarbutton>
|
|
||||||
<vbox flex="1">
|
<vbox flex="1">
|
||||||
<label class="fxa-avatar-subpanel-description" >&fxa.menu.signedInAs.label;</label>
|
<label class="fxa-avatar-subpanel-description" >&fxa.menu.signedInAs.label;</label>
|
||||||
<label id="fxa-menu-email"></label>
|
<label id="fxa-menu-email"></label>
|
||||||
|
|
|
@ -674,7 +674,6 @@ toolbarbutton[constrain-size="true"][cui-areatype="menu-panel"] > .toolbarbutton
|
||||||
|
|
||||||
/* Firefox Account Toolbar Panel */
|
/* Firefox Account Toolbar Panel */
|
||||||
|
|
||||||
#fxa-menu-avatar,
|
|
||||||
#fxa-avatar-image {
|
#fxa-avatar-image {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
|
@ -748,8 +747,8 @@ toolbarbutton[constrain-size="true"][cui-areatype="menu-panel"] > .toolbarbutton
|
||||||
#fxa-menu-avatar {
|
#fxa-menu-avatar {
|
||||||
height: 32px;
|
height: 32px;
|
||||||
width: 32px;
|
width: 32px;
|
||||||
pointer-events: none;
|
|
||||||
margin-inline-start: 20px;
|
margin-inline-start: 20px;
|
||||||
|
margin-inline-end: 5px;
|
||||||
-moz-context-properties: fill, fill-opacity;
|
-moz-context-properties: fill, fill-opacity;
|
||||||
fill: var(--arrowpanel-color);
|
fill: var(--arrowpanel-color);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче