mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-02-08 13:38:14 -05:00
Do not show switch guide when there are no rules. Fix #524.
This commit is contained in:
parent
a6c5c26c37
commit
2ae2927def
@ -408,5 +408,6 @@ angular.module('omega').controller 'SwitchProfileCtrl', ($scope, $rootScope,
|
|||||||
getState = omegaTarget.state(['web.switchGuide', 'firstRun'])
|
getState = omegaTarget.state(['web.switchGuide', 'firstRun'])
|
||||||
$q.all([rulesReady, getState]).then ([_, [switchGuide, firstRun]]) ->
|
$q.all([rulesReady, getState]).then ([_, [switchGuide, firstRun]]) ->
|
||||||
return if firstRun or switchGuide == 'shown'
|
return if firstRun or switchGuide == 'shown'
|
||||||
|
return if $scope.profile.rules.length == 0
|
||||||
$script 'js/switch_profile_guide.js'
|
$script 'js/switch_profile_guide.js'
|
||||||
omegaTarget.state('web.switchGuide', 'shown')
|
omegaTarget.state('web.switchGuide', 'shown')
|
||||||
|
Loading…
Reference in New Issue
Block a user