Bug 1065144 - Unhide Loop Firefox Account UI. r=standard8

This commit is contained in:
Matthew Noorenberghe
2014-09-22 14:43:54 -07:00
parent 774973093a
commit 3b5c49652c
6 changed files with 35 additions and 8 deletions

View File

@@ -213,11 +213,11 @@ loop.panel = (function(_, mozL10n) {
mixins: [sharedMixins.DropdownMenuMixin],
handleClickSettingsEntry: function() {
// XXX to be implemented
// XXX to be implemented at the same time as unhiding the entry
},
handleClickAccountEntry: function() {
// XXX to be implemented
navigator.mozLoop.openFxASettings();
},
handleClickAuthEntry: function() {
@@ -242,6 +242,7 @@ loop.panel = (function(_, mozL10n) {
onMouseLeave: this.hideDropdownMenu},
SettingsDropdownEntry({label: __("settings_menu_item_settings"),
onClick: this.handleClickSettingsEntry,
displayed: false,
icon: "settings"}),
SettingsDropdownEntry({label: __("settings_menu_item_account"),
onClick: this.handleClickAccountEntry,
@@ -427,7 +428,7 @@ loop.panel = (function(_, mozL10n) {
},
render: function() {
if (navigator.mozLoop.loggedInToFxA) { // XXX to be implemented
if (navigator.mozLoop.userProfile) {
return null;
}
return (