[+] Disable input when logging in with token

This commit is contained in:
Hykilpikonna
2019-12-02 14:39:15 -05:00
parent 987c9e462a
commit b0d95991f1
+5 -2
View File
@@ -36,6 +36,9 @@ export default class Login extends Vue
}
else
{
// Show loading
this.disableInput = this.loading = true;
// Login with token TODO: Logout if expired
this.login('/login/token', {token: this.$cookies.get('va.token')});
}
@@ -99,14 +102,14 @@ export default class Login extends Vue
{
// Show error message & allow user to retry
this.error = response.data;
this.loading = false;
this.disableInput = this.loading = false;
}
})
.catch(err =>
{
// Show error message & allow user to retry
this.error = err;
this.loading = false;
this.disableInput = this.loading = false;
});
}