Set up first page of VPN Dashboard attempt 1
diff --git a/views/ngXosViews/vpnDashboard/src/js/main.js b/views/ngXosViews/vpnDashboard/src/js/main.js
index 6a2d672..4923b1c 100644
--- a/views/ngXosViews/vpnDashboard/src/js/main.js
+++ b/views/ngXosViews/vpnDashboard/src/js/main.js
@@ -9,9 +9,9 @@
])
.config(($stateProvider) => {
$stateProvider
- .state('user-list', {
+ .state('vpn-list', {
url: '/',
- template: '<users-list></users-list>'
+ template: '<vpn-list></vpn-list>'
});
})
.service('Vpn', function($http, $q){
@@ -33,18 +33,18 @@
.config(function($httpProvider){
$httpProvider.interceptors.push('NoHyperlinks');
})
-.directive('usersList', function(){
+.directive('vpnList', function(){
return {
restrict: 'E',
scope: {},
bindToController: true,
controllerAs: 'vm',
- templateUrl: 'templates/users-list.tpl.html',
+ templateUrl: 'templates/vpn-list.tpl.html',
controller: function(Vpn){
// retrieving user list
Vpn.getVpnTenants()
- .then((users) => {
- this.users = users;
+ .then((vpns) => {
+ this.vpns = vpns;
})
.catch((e) => {
throw new Error(e);