Added changes to Routing
diff --git a/views/ngXosViews/tenant/src/js/main.js b/views/ngXosViews/tenant/src/js/main.js
index a08764e..9177f7f 100644
--- a/views/ngXosViews/tenant/src/js/main.js
+++ b/views/ngXosViews/tenant/src/js/main.js
@@ -110,6 +110,7 @@
controllerAs: 'sl',
templateUrl: 'templates/slicelist.html',
controller: function(SlicesPlus, $stateParams){
+ this.siteId = $stateParams.id;
this.tableConfig = {
columns: [
{
@@ -133,7 +134,7 @@
site: $stateParams.id
}).$promise
.then((users) => {
- this.users = users;
+ this.sliceList = users;
})
.catch((e) => {
throw new Error(e);
diff --git a/views/ngXosViews/tenant/src/templates/slicelist.html b/views/ngXosViews/tenant/src/templates/slicelist.html
index 37b8550..fb42315 100644
--- a/views/ngXosViews/tenant/src/templates/slicelist.html
+++ b/views/ngXosViews/tenant/src/templates/slicelist.html
@@ -1,6 +1,6 @@
<!--<span ng-bind="siteNameSe"></span>-->
<!--<xos-field></xos-field>-->
-<a class="addlink btn btn-info" ui-sref="createslice({site: sl.users[0].site})"><i class="glyphicon glyphicon-plus-sign"></i> Create Slice</a>
-<xos-table config="sl.tableConfig" data="sl.users"></xos-table>
+<a class="addlink btn btn-info" ui-sref="createslice({site: sl.siteId})"><i class="glyphicon glyphicon-plus-sign"></i> Create Slice</a>
+<xos-table config="sl.tableConfig" data="sl.sliceList"></xos-table>
<!--<div ui-view="sliceDetails"></div>-->
<!--<pre>{{sl.users[0].site}}</pre>-->