1 angular.module('dlux.connection_manager', [])
3 .config(function ($stateProvider) {
4 $stateProvider.state('connection_manager', {
6 url: '/connection_manager',
7 templateUrl: 'connection_manager/root.tpl.html'
10 $stateProvider.state('connection_manager.index', {
12 templateUrl: 'connection_manager/index.tpl.html',
15 templateUrl: 'connection_manager/index.tpl.html',
16 controller: function ($scope, ConnectionManagerSvc) {
17 $scope.svc = ConnectionManagerSvc;
19 $scope.gridOptions = {
22 enableRowSelection: true,
23 showSelectionCheckbox: true,
24 selectWithCheckboxOnly: true,
27 field: 'id', displayName: 'ID',
30 field: 'type', displayName: 'Type',
37 return ConnectionManagerSvc.data;
48 $stateProvider.state('connection_manager.discover', {
52 templateUrl: 'connection_manager/discover.tpl.html',
53 controller: function ($scope, SwitchSvc, ConnectionManagerSvc) {
54 $scope.nodePort = 6633;
56 $scope.doDiscover = function () {
57 ConnectionManagerSvc.discover($scope.nodeId, $scope.nodeAddress, $scope.nodePort).then(
59 $scope.$state.go('connection_manager.index');
62 $scope.error = error.data;