IGNITE-10613 Web console: Fixed opening of "Import models" dialog after cancel of...
authorVasiliy Sisko <vsisko@gridgain.com>
Fri, 11 Jan 2019 08:56:50 +0000 (15:56 +0700)
committerAlexey Kuznetsov <akuznetsov@apache.org>
Fri, 11 Jan 2019 08:56:50 +0000 (15:56 +0700)
modules/web-console/frontend/app/components/page-configure/components/modal-import-models/service.js

index c45abaa..a76ec13 100644 (file)
@@ -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() {