diff options
Diffstat (limited to 'usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/controller/left-menuController.js')
-rw-r--r-- | usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/controller/left-menuController.js | 41 |
1 files changed, 32 insertions, 9 deletions
diff --git a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/controller/left-menuController.js b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/controller/left-menuController.js index 985ec877..03e90bc2 100644 --- a/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/controller/left-menuController.js +++ b/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/controller/left-menuController.js @@ -13,17 +13,40 @@ See the License for the specific language governing permissions and limitations under the License. */ -var currentTab = 'app/uui/fusion/scripts/view-models/alarm.html'; +var currentTab = 'app/uui/fusion/scripts/view-models/performance.html'; -app.controller('cmCtrl',['$scope',function ($scope) { - $scope.routeData = [ - {name : 'Services' , url : 'app/uui/fusion/scripts/view-models/lifecyclemanagement.html' , nclass : 'fa fa-users'}, - {name : 'Alarm' , url : 'app/uui/fusion/scripts/view-models/alarm.html' , nclass : 'fa fa-users'}, - {name : 'Performance' , url : 'app/uui/fusion/scripts/view-models/performance.html', nclass : 'fa fa-cog'} +app.controller('cmCtrl', ['$scope', function ($scope) { + $scope.routeData = [{ + name: 'Services', + url: 'app/uui/fusion/scripts/view-models/lifecyclemanagement.html', + nclass: 'fa fa-users' + }, + { + name: 'Alarm', + url: 'app/uui/fusion/scripts/view-models/alarm.html', + nclass: 'fa fa-users' + }, + { + name: 'Performance', + url: 'app/uui/fusion/scripts/view-models/performance.html', + nclass: 'fa fa-cog' + } + /*{ + name: 'Topological diagram', + url: 'app/uui/fusion/scripts/view-models/topology.html', + nclass: 'fa fa-cog' + }, + { + name: 'Device topological', + url: 'app/uui/fusion/scripts/view-models/device-topological.html', + nclass: 'fa fa-cog' + }*/ ]; $scope.currentTab = currentTab; - $scope.$watch('currentTab', function(newValue, oldValue) { - if (newValue === oldValue) { return; } // AKA first run + $scope.$watch('currentTab', function (newValue, oldValue) { + if (newValue === oldValue) { + return; + } // AKA first run // $scope.onClickTab(newValue); }); $scope.onClickTab = function (url) { @@ -32,4 +55,4 @@ app.controller('cmCtrl',['$scope',function ($scope) { $scope.isActiveTab = function (tabRoute) { return tabRoute == $scope.currentTab; } -}]); +}]);
\ No newline at end of file |