Skip to content

Commit

Permalink
UI-1790: Updated helpSettings uiFlags code
Browse files Browse the repository at this point in the history
  • Loading branch information
JRMaitre committed Aug 27, 2015
1 parent b667186 commit aef8830
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions submodules/groups/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,7 @@ define(function(require){

groupsHasWalkthrough: function(callback) {
var self = this,
flag = self.helpSettings.user.get('showGroupsWalkthrough');
flag = self.uiFlags.user.get('showGroupsWalkthrough');

if(flag !== false) {
callback && callback();
Expand All @@ -1656,7 +1656,7 @@ define(function(require){

groupsUpdateWalkthroughFlagUser: function(callback) {
var self = this,
userToSave = self.helpSettings.user.set('showGroupsWalkthrough', false);
userToSave = self.uiFlags.user.set('showGroupsWalkthrough', false);

self.groupsUpdateOriginalUser(userToSave, function(user) {
callback && callback(user);
Expand Down
4 changes: 2 additions & 2 deletions submodules/myOffice/myOffice.js
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ define(function(require){

myOfficeHasWalkthrough: function(callback) {
var self = this,
flag = self.helpSettings.user.get('showDashboardWalkthrough');
flag = self.uiFlags.user.get('showDashboardWalkthrough');

if(flag !== false) {
callback && callback();
Expand Down Expand Up @@ -922,7 +922,7 @@ define(function(require){

myOfficeUpdateWalkthroughFlagUser: function(callback) {
var self = this,
userToSave = self.helpSettings.user.set('showDashboardWalkthrough', false);
userToSave = self.uiFlags.user.set('showDashboardWalkthrough', false);

self.myOfficeUpdateOriginalUser(userToSave, function(user) {
callback && callback(user);
Expand Down
4 changes: 2 additions & 2 deletions submodules/strategy/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ define(function(require){

strategyHasWalkthrough: function(name, callback) {
var self = this,
flag = self.helpSettings.user.get(name);
flag = self.uiFlags.user.get(name);

if(flag !== false) {
callback && callback();
Expand All @@ -260,7 +260,7 @@ define(function(require){

strategyUpdateWalkthroughFlagUser: function(flagName, callback) {
var self = this,
userToSave = self.helpSettings.user.set(flagName, false);
userToSave = self.uiFlags.user.set(flagName, false);

self.strategyUpdateOriginalUser(userToSave, function(user) {
callback && callback(user);
Expand Down
4 changes: 2 additions & 2 deletions submodules/users/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ define(function(require){

usersHasWalkthrough: function(callback) {
var self = this,
flag = self.helpSettings.user.get('showUsersWalkthrough');
flag = self.uiFlags.user.get('showUsersWalkthrough');

if(flag !== false) {
callback && callback();
Expand All @@ -106,7 +106,7 @@ define(function(require){

usersUpdateWalkthroughFlagUser: function(callback) {
var self = this,
userToSave = self.helpSettings.user.set('showUsersWalkthrough', false);
userToSave = self.uiFlags.user.set('showUsersWalkthrough', false);

self.usersUpdateOriginalUser(userToSave, function(user) {
callback && callback(user);
Expand Down

0 comments on commit aef8830

Please sign in to comment.