mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-02-02 02:58:13 -05:00
Add conditions only for checked domains in failed resources. Fix #343.
This commit is contained in:
parent
382a5ecde5
commit
1f177ab5de
@ -166,10 +166,12 @@ module.controller 'PopupCtrl', ($scope, $window, $q, omegaTarget,
|
||||
refresh()
|
||||
|
||||
$scope.addConditionForDomains = (domains, profileName) ->
|
||||
conditions = Object.keys(domains).map (domain) -> {
|
||||
conditionType: 'HostWildcardCondition'
|
||||
pattern: domain
|
||||
}
|
||||
conditions = []
|
||||
for own domain, enabled of domains when enabled
|
||||
conditions.push({
|
||||
conditionType: 'HostWildcardCondition'
|
||||
pattern: domain
|
||||
})
|
||||
omegaTarget.addCondition(conditions, profileName).then ->
|
||||
omegaTarget.state('lastProfileNameForCondition', profileName)
|
||||
refresh()
|
||||
|
Loading…
Reference in New Issue
Block a user