summaryrefslogtreecommitdiffstats
path: root/usecaseui-monitor/src/main/webapp/app/uui/fusion/scripts/controller/left-menuController.js
blob: 0f776b0359acb733d694a01f0c440f015d508ed9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
app.controller('cmCtrl',['$scope',function ($scope) {
  $scope.routeData = [
    {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 : 'About Performance Froms' , url : 'app/uui/fusion/scripts/view-models/performance-details.html', nclass : 'fa fa-cubes'},
  ];
  $scope.currentTab = 'app/uui/fusion/scripts/view-models/alarm.html';
  $scope.onClickTab = function (url) {
    $scope.currentTab = url;
  };
  $scope.isActiveTab = function (tabRoute) {
    return tabRoute == $scope.currentTab;
  }
}]);