nexus site path corrected
[portal.git] / ecomp-portal-FE / client / kpi-dashboard / controllers / InfrastructurePortal-controller.js
1 /*-
2  * ================================================================================
3  * eCOMP Portal
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ================================================================================
19  */
20 app.controller('InfrastructurePortal_Ctrl_KPI', function($scope, $http, $log,  $modal, KpiDashboardService) {
21         $scope.activeToplevelTabId = 'i-Portal';
22         $scope.activeTabId = 'KPI';     
23         var TabIdforState = 'InfrastructurePortal';
24         $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
25         $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
26         $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
27         $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
28 });
29
30 app.controller('InfrastructurePortal_Ctrl_UserDefinedKPI', function($scope, $http, $log,  $modal, KpiDashboardService) {
31         $scope.activeToplevelTabId = 'i-Portal';
32         $scope.activeTabId = 'User Defined KPI';
33         var TabIdforState = 'InfrastructurePortal';
34         $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
35         $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
36         $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
37         $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
38 });
39
40 app.controller('InfrastructurePortal_Ctrl_Metrics', function($scope, $http, $log,  $modal, KpiDashboardService) {
41         $scope.activeToplevelTabId = 'i-Portal';
42         $scope.activeTabId = 'Metrics'; 
43         var TabIdforState = 'InfrastructurePortal';
44         $scope.toplevelgTabs1 = KpiDashboardService.getToplevelgTabs1();
45         $scope.toplevelgTabs2 = KpiDashboardService.getToplevelgTabs2();
46         $scope.toplevelgTabs3 = KpiDashboardService.getToplevelgTabs3();
47         $scope.gTabs = KpiDashboardService.getGenericTabs(TabIdforState);
48 });