mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-03-13 08:28:13 -04:00
Set web.switchGuide to shown as soon as possible.
This commit is contained in:
parent
23fe7dca62
commit
bf7a7810fe
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user