Assign image keyname and pubkey at vnf level
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / ux / mwtnPerformanceLink / mwtnPerformanceLink-module / src / main / resources / mwtnPerformanceLink / mwtnPerformanceLink.module.js
1 /*
2  * Copyright (c) 2016 highstreet technologies GmbH and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 define(['angularAMD', 
10         'app/routingConfig', 
11         'app/core/core.services', 
12         'common/config/env.module',
13         'app/mwtnCommons/mwtnCommons.module'], function(ng) {
14   var mwtnPerformanceLinkApp = angular.module('app.mwtnPerformanceLink', ['ui.grid','chart.js', 'ui.bootstrap', 'app.core', 'ui.router.state', 'config', 'ui.router.state','ui.grid.exporter',
15       'ui.grid.moveColumns', 'ui.grid.pinning', 'ui.grid.selection',
16       'ui.grid.resizeColumns', 'ui.grid.pagination']);
17
18   mwtnPerformanceLinkApp.config(function($stateProvider, $compileProvider, $controllerProvider, $provide, NavHelperProvider, $translateProvider) {
19     mwtnPerformanceLinkApp.register = {
20       controller : $controllerProvider.register,
21       directive : $compileProvider.directive,
22       factory : $provide.factory,
23       service : $provide.service
24
25     };
26
27     NavHelperProvider.addControllerUrl('app/mwtnPerformanceLink/mwtnPerformanceLink.controller');
28     NavHelperProvider.addToMenu('mwtnPerformanceLink', {
29      "link" : "#/pnfPerformanceLink",
30      "active" : "main.mwtnPerformanceLink",
31      "title" : "pnf PM Link",
32      "icon" : "fa fa-bar-chart",  // Add navigation icon css class here
33      "page" : {
34         "title" : "pnf PM Link",
35         "description" : "mwtnLinkPerformance"
36      }
37     });
38
39     var access = routingConfig.accessLevels;
40
41     $stateProvider.state('main.mwtnPerformanceLink', {
42         url: 'pnfPerformanceLink',
43         access: access.admin,
44         views : {
45             'content' : {
46                 templateUrl: 'src/app/mwtnPerformanceLink/mwtnPerformanceLink.tpl.html',
47                 controller: 'mwtnPerformanceLinkCtrl'
48             }
49         }
50     });
51
52   });
53
54   return mwtnPerformanceLinkApp;
55 });