mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-23 08:13:01 +00:00
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) {
|
public abort_calendar_door(name: string, reason: unknown) {
|
||||||
this.$refs.multi_modal.set_active(false);
|
this.$refs.multi_modal.set_active(false);
|
||||||
|
|
||||||
if ((reason as AxiosError).response?.status == 401) {
|
if (
|
||||||
alert("Nice try!")
|
(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() {
|
public show_progress() {
|
||||||
this.progress = true;
|
this.progress = true;
|
||||||
this.image_src = "";
|
|
||||||
this.set_active(true);
|
this.set_active(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue