summaryrefslogtreecommitdiff
path: root/app/assets
diff options
context:
space:
mode:
authorJacopo <beschi.jacopo@gmail.com>2018-01-01 23:43:16 +0100
committerJacopo <beschi.jacopo@gmail.com>2018-01-18 14:32:44 +0100
commit269594bf2277e14d8cd189cdbbeeee7db8ed23d7 (patch)
treebe62b90e2beee0166a1af52e754aefd1131430b7 /app/assets
parent50a649530a53a04d2044f9e4c5502586a7ed0c59 (diff)
downloadgitlab-ce-269594bf2277e14d8cd189cdbbeeee7db8ed23d7.tar.gz
Fix Shows signin tab after new user email confirmation
When a new user confirm his email the signin tab is correctly shown.
Diffstat (limited to 'app/assets')
-rw-r--r--app/assets/javascripts/pages/sessions/new/signin_tabs_memoizer.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/pages/sessions/new/signin_tabs_memoizer.js b/app/assets/javascripts/pages/sessions/new/signin_tabs_memoizer.js
index f99573e5c74..08f0afdcce3 100644
--- a/app/assets/javascripts/pages/sessions/new/signin_tabs_memoizer.js
+++ b/app/assets/javascripts/pages/sessions/new/signin_tabs_memoizer.js
@@ -1,5 +1,3 @@
-/* eslint no-param-reassign: ["error", { "props": false }]*/
-/* eslint no-new: "off" */
import AccessorUtilities from '~/lib/utils/accessor';
/**
@@ -11,6 +9,10 @@ export default class SigninTabsMemoizer {
this.currentTabKey = currentTabKey;
this.tabSelector = tabSelector;
this.isLocalStorageAvailable = AccessorUtilities.isLocalStorageAccessSafe();
+ // sets selected tab if given as hash tag
+ if (window.location.hash) {
+ this.saveData(window.location.hash);
+ }
this.bootstrap();
}