Fix Add Tenant 50/50050/1
authorElisha Oren <elisha.oren@hpe.com>
Sun, 25 Dec 2016 15:19:44 +0000 (17:19 +0200)
committerElisha Oren <elisha.oren@hpe.com>
Thu, 5 Jan 2017 09:44:37 +0000 (11:44 +0200)
Change-Id: I1530ae9d88eb9434536305cb80ab0fda13bd31bb
Signed-off-by: Elisha Oren <elisha.oren@hpe.com>
dlux/cpeui/cpeui-module/src/main/resources/cpeui/admin.controller.js

index 2dcd3bbef5ce75201faa1dec3392f6f558153299..edcf42a2c9ac8f03d1b10ff514f1da055ad4b7e0 100644 (file)
@@ -15,14 +15,14 @@ define([ 'app/cpeui/cpeui.module' ], function(cpeui) {
 
         $scope.AddTenant = function() {
           CpeuiSvc.addTenant($scope.tenantId, function() {
-            $scope.updateView();
+              $scope.updateTenantView();
           });
         };
 
         $scope.tenantDialog = new CpeuiDialogs.Dialog('AddTenant', {},
             function(obj) {
               CpeuiSvc.addTenant(obj.id, function() {
-                $scope.updateView();
+                 $scope.updateTenantView();
               });
             });
 
@@ -34,7 +34,7 @@ define([ 'app/cpeui/cpeui.module' ], function(cpeui) {
         $scope.DeleteTenant = function(tenantID) {
           CpeuiDialogs.confirm(function() {
             CpeuiSvc.deleteTenant(tenantID, function() {
-              $scope.updateView();
+                $scope.updateTenantView();
             });
           });
         };