Skip to content
Snippets Groups Projects
Commit 1f16faf5 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

feat: Redirect to crop category selection after login

parent 32e92770
No related branches found
No related tags found
No related merge requests found
......@@ -135,9 +135,8 @@
this.userLoggedInName = this.$root.sharedState.user.firstName + " " + this.$root.sharedState.user.lastName;
}
/** Show the observation list instead of welcome page if user is logged in */
if(this.$root.sharedState.uuid)
{
this.$router.push("/");
if(this.$root.sharedState.uuid) {
this.$router.push("/cropCategory");
}
},
......@@ -241,8 +240,8 @@
this.$refs.Sync.isSyncOnewayNeeded(loggedUser);
this.$refs.Sync.syncTwoWayAtLogin();
localStorage.setItem(CommonUtil.CONST_STORAGE_UUID, uuid);
if (this.$router.currentRoute.path != "/") {
this.$router.push('/')
if (this.$router.currentRoute.path !== "/cropCategory") {
this.$router.push("/cropCategory");
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment