Change-Id: I62c1f034c4219b9b08cd19a4a263fa832a92cbac
Signed-off-by: Elisha Oren <elisha.oren@hpe.com>
}
if ($stateParams.tenantTabName in tabIndexs) {
$scope.tab.tenantData = tabIndexs[$stateParams.tenantTabName];
+ } else {
+ $scope.tab.tenantData = tabIndexs.inventory;
}
+ CpeuiSvc.getTenantList(function(tenant_list) {
+ if (tenant_list.filter(t => t.name == $scope.curTenant).length == 0) {
+ window.location = "#/cpeui/admin/tenants";
+ }
+ });
+
function init(){
$scope.updateUnis(function(unis){
CpeuiSvc.getCes(function(ces) {