Set web.switchGuide to shown as soon as possible.

This commit is contained in:
FelisCatus 2016-03-17 14:50:01 +08:00
parent 23fe7dca62
commit bf7a7810fe

View File

@ -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')