Bug 1074932 - Desktop client user can access product tour from gears menu. r=MattN

This commit is contained in:
Jared Wein
2014-11-19 13:29:17 -05:00
parent 779a495237
commit c34e86f04c
4 changed files with 26 additions and 5 deletions

View File

@@ -286,6 +286,10 @@ loop.panel = (function(_, mozL10n) {
return !!navigator.mozLoop.userProfile;
},
openGettingStartedTour: function() {
navigator.mozLoop.openGettingStartedTour("settingsMenu");
},
render: function() {
var cx = React.addons.classSet;
@@ -308,6 +312,8 @@ loop.panel = (function(_, mozL10n) {
onClick: this.handleClickAccountEntry,
icon: "account",
displayed: this._isSignedIn()}),
SettingsDropdownEntry({label: mozL10n.get("tour_label"),
onClick: this.openGettingStartedTour}),
SettingsDropdownEntry({label: this._isSignedIn() ?
mozL10n.get("settings_menu_item_signout") :
mozL10n.get("settings_menu_item_signin"),