X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=modules%2Fyangman-resources%2Fsrc%2Fmain%2Fresources%2Fyangman%2Fdirectives%2Fabn-tree.directive.js;fp=modules%2Fyangman-resources%2Fsrc%2Fmain%2Fresources%2Fyangman%2Fdirectives%2Fabn-tree.directive.js;h=138edb46dadf014cfbd0ec06e6766c148bc2227b;hb=8069f962b6b8b3993e7d2f0736b995d0ad6ce260;hp=1244d041b596bd4acd2742540773f2380c1760b5;hpb=6e0137fef527479bdd7277ba5a5af85c9722c05c;p=dlux.git diff --git a/modules/yangman-resources/src/main/resources/yangman/directives/abn-tree.directive.js b/modules/yangman-resources/src/main/resources/yangman/directives/abn-tree.directive.js index 1244d041..138edb46 100644 --- a/modules/yangman-resources/src/main/resources/yangman/directives/abn-tree.directive.js +++ b/modules/yangman-resources/src/main/resources/yangman/directives/abn-tree.directive.js @@ -2,7 +2,7 @@ define(['angular'], function (angular) { 'use strict'; angular.module('app.yangman').directive('abnApiTree', [ - '$timeout', function ($timeout) { + '$timeout', 'constants', function ($timeout, constants) { return { restrict: 'E', templateUrl: 'src/app/yangman/views/directives/abn-tree.tpl.html', @@ -27,16 +27,16 @@ define(['angular'], function (angular) { tree; if (attrs.iconExpand == null) { - attrs.iconExpand = 'add'; + attrs.iconExpand = constants.ICON_EXPAND_ADD; } if (attrs.iconCollapse == null) { - attrs.iconCollapse = 'remove'; + attrs.iconCollapse = constants.ICON_COLLAPSE_REMOVE; } if (attrs.iconLeaf == null) { - attrs.iconLeaf = 'keyboard_arrow_right'; + attrs.iconLeaf = constants.ICON_KEYBOARD_ARROW_RIGHT; } if (attrs.expandLevel == null) { - attrs.expandLevel = '3'; + attrs.expandLevel = constants.EXPAND_LEVEL_THREE; } expandLevel = parseInt(attrs.expandLevel, 10); if (!scope.treeData) {