diff options
author | 2016-02-07 02:59:07 -0800 | |
---|---|---|
committer | 2016-02-07 18:48:11 +0000 | |
commit | f5e3e98d5c14252db91b8642028728553b43baca (patch) | |
tree | e649a4dc6fc326bd2f39475d6ca359d96b322952 /vbd/gui/module/src/main/resources/vpp/controllers/bdm.controller.js | |
parent | df53da6e0a476db6c0e46b9d5e6c2b5d620c600a (diff) |
Inventory rework
- ui-grid replaces by smart-table
- dark theme setted
- orange buttons added
Change-Id: I2afe3231a1e889a1d23056242167cad65cbfae11
Signed-off-by: Daniel Malachovsky <daniel.malachovsky@pantheon.sk>
Signed-off-by: Varun Seereeram <vseereer@cisco.com>
Diffstat (limited to 'vbd/gui/module/src/main/resources/vpp/controllers/bdm.controller.js')
-rw-r--r-- | vbd/gui/module/src/main/resources/vpp/controllers/bdm.controller.js | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/vbd/gui/module/src/main/resources/vpp/controllers/bdm.controller.js b/vbd/gui/module/src/main/resources/vpp/controllers/bdm.controller.js index b49fe8af8..d8fe8ea0f 100644 --- a/vbd/gui/module/src/main/resources/vpp/controllers/bdm.controller.js +++ b/vbd/gui/module/src/main/resources/vpp/controllers/bdm.controller.js @@ -47,8 +47,7 @@ define(['app/vpp/vpp.module'], function(vpp) { }); }; - /*var vm = this; - vm.dataService = dataService; + $scope.dataService = dataService; dataService.nextApp.container(document.getElementById('bridge-domains-next-app')); dataService.bridgeDomainsTopo.attach(dataService.nextApp); @@ -59,19 +58,19 @@ define(['app/vpp/vpp.module'], function(vpp) { } }); - vm.bridgedomains = dataService.bridgedomains; - vm.selectedBd = dataService.selectedBd; + $scope.bridgedomains = dataService.bridgedomains; + $scope.selectedBd = dataService.selectedBd; dataService.bridgeDomainsTopo.on('clickNode',function(topo,node) { console.log(node); }); - vm.bdChanged = function() { + $scope.bdChanged = function() { dataService.injectBridgeDomainsTopoElements(); dataService.buildTableContent(); }; - vm.addBd = function() { + $scope.addBd = function() { //show dialog $mdDialog.show({ controller: function() { @@ -111,20 +110,20 @@ define(['app/vpp/vpp.module'], function(vpp) { - vm.deploy = function() { + $scope.deploy = function() { }; - vm.removeBd = function() { - if(vm.selectedBd.name) { + $scope.removeBd = function() { + if($scope.selectedBd.name) { var successCallback = function(success) { if (success) { - console.log(vm.bridgedomains); - _.remove(vm.bridgedomains, { - name: vm.selectedBd.name + console.log($scope.bridgedomains); + _.remove($scope.bridgedomains, { + name: $scope.selectedBd.name }); toastService.showToast('Bridge Domain Removed!'); - vm.selectedBd.name = ''; + $scope.selectedBd.name = ''; dataService.clearInjectedInterfacesInBridgeDomainTopo(); dataService.injectBdIntoBridgeDomainsTopo(); dataService.tableContent.length = 0; @@ -137,6 +136,6 @@ define(['app/vpp/vpp.module'], function(vpp) { //... removeBdFromOdl(vm.selectedBd.name, successCallback); } }; - */ + }]); });
\ No newline at end of file |