diff --git a/ui/src/app/rulechain/link-fieldset.tpl.html b/ui/src/app/rulechain/link-fieldset.tpl.html index 3dbe33f87f..e74542fc03 100644 --- a/ui/src/app/rulechain/link-fieldset.tpl.html +++ b/ui/src/app/rulechain/link-fieldset.tpl.html @@ -56,23 +56,5 @@
- diff --git a/ui/src/app/rulechain/link.directive.js b/ui/src/app/rulechain/link.directive.js index dd438212a4..40c7a61dc7 100644 --- a/ui/src/app/rulechain/link.directive.js +++ b/ui/src/app/rulechain/link.directive.js @@ -35,33 +35,6 @@ export default function LinkDirective($compile, $templateCache, $filter) { var labelsList = []; - /*scope.$watch('link', function() { - scope.selectedLabel = null; - if (scope.link && scope.labels) { - if (scope.link.label) { - var result = $filter('filter')(scope.labels, {name: scope.link.label}); - if (result && result.length) { - scope.selectedLabel = result[0]; - } else { - result = $filter('filter')(scope.labels, {custom: true}); - if (result && result.length && result[0].custom) { - scope.selectedLabel = result[0]; - } - } - } - } - }); - - scope.selectedLabelChanged = function() { - if (scope.link && scope.selectedLabel) { - if (!scope.selectedLabel.custom) { - scope.link.label = scope.selectedLabel.name; - } else { - scope.link.label = ""; - } - } - };*/ - scope.transformLinkLabelChip = function (chip) { var res = $filter('filter')(labelsList, {name: chip}, true); var result;