This is an automated email from the ASF dual-hosted git repository.

akuznetsov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new e2cdfae  IGNITE-10613 Web console: Fixed opening of "Import models" 
dialog after cancel of "Unsaved changes" confirmation dialog.
e2cdfae is described below

commit e2cdfae5313e222144f8f16448ab06f746ad2fd0
Author: Vasiliy Sisko <[email protected]>
AuthorDate: Fri Jan 11 15:56:50 2019 +0700

    IGNITE-10613 Web console: Fixed opening of "Import models" dialog after 
cancel of "Unsaved changes" confirmation dialog.
---
 .../page-configure/components/modal-import-models/service.js        | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 
a/modules/web-console/frontend/app/components/page-configure/components/modal-import-models/service.js
 
b/modules/web-console/frontend/app/components/page-configure/components/modal-import-models/service.js
index c45abaa..a76ec13 100644
--- 
a/modules/web-console/frontend/app/components/page-configure/components/modal-import-models/service.js
+++ 
b/modules/web-console/frontend/app/components/page-configure/components/modal-import-models/service.js
@@ -48,7 +48,11 @@ export default class ModalImportModels {
             }
         });
 
-        return this.$uiRouter.stateService.go(this._state, 
this.$uiRouter.stateService.params);
+        return this.$uiRouter.stateService.go(this._state, 
this.$uiRouter.stateService.params)
+            .catch(() => {
+                this.deferred.reject(false);
+                this.deferred = null;
+            });
     }
 
     _open() {

Reply via email to