be a bit safer
This commit is contained in:
parent
d26a75ebcc
commit
9f3339240f
2 changed files with 6 additions and 3 deletions
|
@ -73,8 +73,12 @@ export default class extends Vue {
|
|||
public abort_calendar_door(name: string, reason: unknown) {
|
||||
this.$refs.multi_modal.set_active(false);
|
||||
|
||||
if ((reason as AxiosError).response?.status == 401) {
|
||||
alert("Nice try!")
|
||||
if (
|
||||
(reason instanceof AxiosError)
|
||||
&& (reason.response !== undefined)
|
||||
&& (reason.response.status === 401)
|
||||
) {
|
||||
alert("Netter Versuch!")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,7 +41,6 @@ export default class extends Vue {
|
|||
|
||||
public show_progress() {
|
||||
this.progress = true;
|
||||
this.image_src = "";
|
||||
this.set_active(true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue