ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [32/50] [abbrv] ignite git commit: IGNITE-3803 Fixed blinking signin page for authorized user.
Date Thu, 08 Sep 2016 04:46:49 GMT
IGNITE-3803 Fixed blinking signin page for authorized user.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/76f7eabc
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/76f7eabc
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/76f7eabc

Branch: refs/heads/ignite-3629
Commit: 76f7eabca16e345792b344cec6ed251c2ad6caa9
Parents: 4167196
Author: Maxim Afanasiev <mafkus@gmail.com>
Authored: Wed Aug 31 15:32:54 2016 +0700
Committer: Maxim Afanasiev <mafkus@gmail.com>
Committed: Wed Aug 31 15:32:54 2016 +0700

----------------------------------------------------------------------
 .../frontend/app/modules/states/signin.state.js          | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/76f7eabc/modules/web-console/frontend/app/modules/states/signin.state.js
----------------------------------------------------------------------
diff --git a/modules/web-console/frontend/app/modules/states/signin.state.js b/modules/web-console/frontend/app/modules/states/signin.state.js
index ec62af5..14ebc1b 100644
--- a/modules/web-console/frontend/app/modules/states/signin.state.js
+++ b/modules/web-console/frontend/app/modules/states/signin.state.js
@@ -30,10 +30,13 @@ angular
     .state('signin', {
         url: '/',
         templateUrl,
-        onEnter: ['$state', 'User', ($state, User) => {
-            User.read()
-                .then(() => $state.go('base.configuration.clusters', {}, {reload: true}));
-        }],
+        resolve: {
+            user: ['$state', 'User', ($state, User) => {
+                return User.read()
+                    .then(() => $state.go('base.configuration.clusters'))
+                    .catch(() => {});
+            }]
+        },
         metaTags: {
         }
     });


Mime
View raw message