Bug 1059756 - Add a link to Loop's help page in the gear menu. r=MattN
This commit is contained in:
@@ -281,6 +281,13 @@ loop.panel = (function(_, mozL10n) {
|
||||
}
|
||||
},
|
||||
|
||||
handleHelpEntry: function(event) {
|
||||
event.preventDefault();
|
||||
var helloSupportUrl = navigator.mozLoop.getLoopPref('support_url');
|
||||
window.open(helloSupportUrl);
|
||||
window.close();
|
||||
},
|
||||
|
||||
_isSignedIn: function() {
|
||||
return !!navigator.mozLoop.userProfile;
|
||||
},
|
||||
@@ -318,7 +325,10 @@ loop.panel = (function(_, mozL10n) {
|
||||
mozL10n.get("settings_menu_item_signin"),
|
||||
onClick: this.handleClickAuthEntry,
|
||||
displayed: navigator.mozLoop.fxAEnabled,
|
||||
icon: this._isSignedIn() ? "signout" : "signin"})
|
||||
icon: this._isSignedIn() ? "signout" : "signin"}),
|
||||
SettingsDropdownEntry({label: mozL10n.get("help_label"),
|
||||
onClick: this.handleHelpEntry,
|
||||
icon: "help"})
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user