aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/UserStore.js
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-06-21 09:19:59 +0200
committerLibravatar GitHub <noreply@github.com>2020-06-21 12:49:59 +0530
commit0d6d623d1e34cdbff2d46229165b49289a9a0619 (patch)
tree83f6a22a08e354da58adf3ed0393f4d39bca6124 /src/stores/UserStore.js
parentPrepare and Release/5.6.0 beta.1 (#820) (diff)
downloadferdium-app-0d6d623d1e34cdbff2d46229165b49289a9a0619.tar.gz
ferdium-app-0d6d623d1e34cdbff2d46229165b49289a9a0619.tar.zst
ferdium-app-0d6d623d1e34cdbff2d46229165b49289a9a0619.zip
Add FAB to service dashboard (#824)
* Implement #387 * Fix lint * Upgrade to Electron 9 * Remove dependency on electron-spellchecker * Allow multiple languages to be selected * Fix lint * Don't show spellchecker language chooser for macOS * Fix _requireAuthenticatedUser throwing error on startup * Add FAB
Diffstat (limited to 'src/stores/UserStore.js')
-rw-r--r--src/stores/UserStore.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js
index 3a53d150d..c1ed2944a 100644
--- a/src/stores/UserStore.js
+++ b/src/stores/UserStore.js
@@ -99,7 +99,7 @@ export default class UserStore extends Store {
99 99
100 // Reactions 100 // Reactions
101 this.registerReactions([ 101 this.registerReactions([
102 this._requireAuthenticatedUser, 102 this._requireAuthenticatedUser.bind(this),
103 this._getUserData.bind(this), 103 this._getUserData.bind(this),
104 this._resetTrialActivationState.bind(this), 104 this._resetTrialActivationState.bind(this),
105 ]); 105 ]);
@@ -321,7 +321,7 @@ export default class UserStore extends Store {
321 } 321 }
322 322
323 const { router } = this.stores; 323 const { router } = this.stores;
324 const currentRoute = router.location.pathname; 324 const currentRoute = window.location.hash;
325 if (!this.isLoggedIn 325 if (!this.isLoggedIn
326 && currentRoute.includes('token=')) { 326 && currentRoute.includes('token=')) {
327 router.push(this.WELCOME_ROUTE); 327 router.push(this.WELCOME_ROUTE);