Browse Source

Set web.switchGuide to shown as soon as possible.

FelisCatus 9 years ago
parent
commit
bf7a7810fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      omega-web/src/omega/controllers/switch_profile.coffee

+ 1 - 1
omega-web/src/omega/controllers/switch_profile.coffee

@@ -411,6 +411,6 @@ angular.module('omega').controller 'SwitchProfileCtrl', ($scope, $rootScope,
       getState = omegaTarget.state(['web.switchGuide', 'firstRun'])
       $q.all([rulesReady, getState]).then ([_, [switchGuide, firstRun]]) ->
         return if firstRun or switchGuide == 'shown'
+        omegaTarget.state('web.switchGuide', 'shown')
         return if $scope.profile.rules.length == 0
         $script 'js/switch_profile_guide.js'
-        omegaTarget.state('web.switchGuide', 'shown')