From 5ccd7095f6a48d55dec88c7db8f54a9adaa508a4 Mon Sep 17 00:00:00 2001 From: Dilshat Aliev Date: Thu, 13 Sep 2018 08:50:57 +0600 Subject: [PATCH] #2642 small fixes on UI side --- .../main/webapp/subutai-app/environment/advanced-controller.js | 2 ++ .../main/webapp/subutai-app/environment/simple-controller.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/management/server/webui/src/main/webapp/subutai-app/environment/advanced-controller.js b/management/server/webui/src/main/webapp/subutai-app/environment/advanced-controller.js index 7a1a7fd6126..109819eea38 100755 --- a/management/server/webui/src/main/webapp/subutai-app/environment/advanced-controller.js +++ b/management/server/webui/src/main/webapp/subutai-app/environment/advanced-controller.js @@ -332,6 +332,7 @@ function AdvancedEnvironmentCtrl($scope, $rootScope, environmentService, tracker $rootScope.notificationsUpdate = 'startEnvironmentAdvancedBuild'; }).error(function (error) { + ngDialog.closeAll(); if (error && error.ERROR === undefined) { VARS_MODAL_ERROR(SweetAlert, 'Error: ' + error); } else { @@ -378,6 +379,7 @@ function AdvancedEnvironmentCtrl($scope, $rootScope, environmentService, tracker $rootScope.notificationsUpdate = 'modifyEnvironmentAdv'; }).error(function (error) { + ngDialog.closeAll(); if (error && error.ERROR === undefined) { VARS_MODAL_ERROR(SweetAlert, 'Error: ' + error); } else { diff --git a/management/server/webui/src/main/webapp/subutai-app/environment/simple-controller.js b/management/server/webui/src/main/webapp/subutai-app/environment/simple-controller.js index e3d58031633..189e2633238 100755 --- a/management/server/webui/src/main/webapp/subutai-app/environment/simple-controller.js +++ b/management/server/webui/src/main/webapp/subutai-app/environment/simple-controller.js @@ -305,6 +305,7 @@ function EnvironmentSimpleViewCtrl($scope, $rootScope, environmentService, track $rootScope.notificationsUpdate = 'buildEnvironment'; }).error(function (error) { + ngDialog.closeAll(); if (error && error.ERROR === undefined) { VARS_MODAL_ERROR(SweetAlert, 'Error: ' + error); } else { @@ -441,6 +442,7 @@ function EnvironmentSimpleViewCtrl($scope, $rootScope, environmentService, track initScrollbar(); $rootScope.notificationsUpdate = 'modifyEnvironment'; }).error(function (error) { + ngDialog.closeAll(); if (error && error.ERROR === undefined) { VARS_MODAL_ERROR(SweetAlert, 'Error: ' + error); } else {