Yangman - delete_list_item button misses in operations form
[dlux.git] / modules / yangman-resources / src / main / resources / yangman / controllers / form / rpc.controller.js
1 define([], function () {
2     'use strict';
3
4     angular.module('app.yangman').controller('RpcCtrl', RpcCtrl);
5
6     RpcCtrl.$inject = ['$scope'];
7
8     function RpcCtrl($scope){
9         var yangRpc = this;
10
11         // methods
12         yangRpc.toggleExpanded = toggleExpanded;
13         yangRpc.isActionMenu = isActionMenu;
14
15         /**
16          * Show hide node
17          */
18         function toggleExpanded() {
19             $scope.node.expanded = !$scope.node.expanded;
20         }
21
22         /**
23          * Show hide action menu
24          * @returns {boolean|*}
25          */
26         function isActionMenu() {
27             return false;
28         }
29
30     }
31 });
32