Assign image keyname and pubkey at vnf level
[ccsdk/apps.git] / sdnr / wireless-transport / code-Carbon-SR1 / ux / mwtnCompare / mwtnCompare-module / src / main / resources / mwtnCompare / mwtnCompare.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', 'app/routingConfig', 'app/core/core.services', 'common/config/env.module'], function(ng) {
10   var mwtnCompareApp = angular.module('app.mwtnCompare', ['app.core', 'ui.router.state','config', 'pascalprecht.translate']);
11
12   mwtnCompareApp.config(function($stateProvider, $compileProvider, $controllerProvider, $provide, NavHelperProvider, $translateProvider) {
13     mwtnCompareApp.register = {
14       controller : $controllerProvider.register,
15       directive : $compileProvider.directive,
16       factory : $provide.factory,
17       service : $provide.service
18
19     };
20
21
22     NavHelperProvider.addControllerUrl('app/mwtnCompare/mwtnCompare.controller');
23     NavHelperProvider.addToMenu('mwtnCompare', {
24      "link" : "#/pnfCompare/",
25      "active" : "main.mwtnCompare",
26      "title" : "pnf Compare",
27      "icon" : "fa fa-tags",  // Add navigation icon css class here
28      "page" : {
29         "title" : "pnf Compare",
30         "description" : "mwtnCompare"
31      }
32     });
33
34     var access = routingConfig.accessLevels;
35
36     $stateProvider.state('main.mwtnCompare', {
37         url: 'pnfCompare/:nodeId',
38         access: access.admin,
39         views : {
40             'content' : {
41                 templateUrl: 'src/app/mwtnCompare/mwtnCompare.tpl.html',
42                 controller: 'mwtnCompareCtrl'
43             }
44         }
45     });
46
47   });
48
49   return mwtnCompareApp;
50 });