|
|
|
@ -114,7 +114,7 @@ export default function RuleChainsController(ruleChainService, userService, edge |
|
|
|
|
|
|
|
if (vm.ruleChainsScope === 'tenant') { |
|
|
|
fetchRuleChainsFunction = function (pageLink) { |
|
|
|
return fetchRuleChains(pageLink, types.systemRuleChainType); |
|
|
|
return fetchRuleChains(pageLink, types.coreRuleChainType); |
|
|
|
}; |
|
|
|
deleteRuleChainFunction = function (ruleChainId) { |
|
|
|
return deleteRuleChain(ruleChainId); |
|
|
|
@ -162,9 +162,9 @@ export default function RuleChainsController(ruleChainService, userService, edge |
|
|
|
}); |
|
|
|
vm.ruleChainGridConfig.addItemActions.push({ |
|
|
|
onAction: function ($event) { |
|
|
|
importExport.importRuleChain($event, types.systemRuleChainType).then( |
|
|
|
importExport.importRuleChain($event, types.coreRuleChainType).then( |
|
|
|
function(ruleChainImport) { |
|
|
|
$state.go('home.ruleChains.importRuleChain', {ruleChainImport:ruleChainImport, ruleChainType: types.systemRuleChainType}); |
|
|
|
$state.go('home.ruleChains.importRuleChain', {ruleChainImport:ruleChainImport, ruleChainType: types.coreRuleChainType}); |
|
|
|
} |
|
|
|
); |
|
|
|
}, |
|
|
|
@ -385,7 +385,7 @@ export default function RuleChainsController(ruleChainService, userService, edge |
|
|
|
if (vm.ruleChainsScope === 'edges') { |
|
|
|
ruleChain.type = types.edgeRuleChainType; |
|
|
|
} else { |
|
|
|
ruleChain.type = types.systemRuleChainType; |
|
|
|
ruleChain.type = types.coreRuleChainType; |
|
|
|
} |
|
|
|
} |
|
|
|
return ruleChainService.saveRuleChain(ruleChain); |
|
|
|
|