Make sure welcome back only shows once and improve margins

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-10-14 14:25:08 +02:00
parent b200b1c2b2
commit cad508a9bb
3 changed files with 22 additions and 6 deletions

View File

@@ -169,6 +169,7 @@ export default class Login extends Vue {
if (this.redirect) {
await this.$router.push(this.redirect);
} else {
window.localStorage.setItem('welcome-back', 'yes');
await this.$router.push({ name: RouteName.HOME });
}
} catch (err) {