[O] Show errors properly
This commit is contained in:
@@ -95,19 +95,15 @@ export default class Login extends Vue
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Show error message
|
// Show error message & allow user to retry
|
||||||
this.error = response.data;
|
this.error = response.data;
|
||||||
|
|
||||||
// Allow the user to retry
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(err =>
|
.catch(err =>
|
||||||
{
|
{
|
||||||
// TODO: Show error properly
|
// Show error message & allow user to retry
|
||||||
alert(err);
|
this.error = err;
|
||||||
|
|
||||||
// Allow the user to retry
|
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user