Compare commits

..

3 commits

5 changed files with 25 additions and 8 deletions

View file

@ -91,7 +91,7 @@ export default class extends Vue {
if (this.store.user_doors.length === 0) return;
this.toast!.show({ duration: 600000, type: "is-warning" });
}, 10000);
}, 10e3);
});
}

View file

@ -1,5 +1,5 @@
<template>
<template v-if="store.user_doors.length > 0">
<template v-if="store.is_initialized === true">
<Calendar :doors="store.user_doors" />
<hr />
<div class="content" v-html="store.site_config.content" />
@ -7,9 +7,14 @@
<template v-if="store.next_door_target === null">
Alle {{ store.user_doors.length }} Türchen offen!
</template>
<template v-else>
<template v-if="store.user_doors.length === 0">
Zeit bis zum ersten Türchen:
</template>
<template v-else>
{{ store.user_doors.length }} Türchen offen. Zeit bis zum nächsten
Türchen:
</template>
<CountDown :until="store.next_door_target" />
</template>
</div>

View file

@ -150,7 +150,13 @@ export default class extends Vue {
this.loading_doors = true;
this.load_doors()
.then(() => toast({ message: "Erfolgreich!", type: "is-success" }))
.then(() =>
toast({
message: "Erfolgreich!",
type: "is-success",
duration: 2e3,
}),
)
.catch(() => {})
.finally(() => (this.loading_doors = false));
}
@ -170,7 +176,13 @@ export default class extends Vue {
this.save_doors()
.then(() => {
this.load_doors()
.then(() => toast({ message: "Erfolgreich!", type: "is-success" }))
.then(() =>
toast({
message: "Erfolgreich!",
type: "is-success",
duration: 2e3,
}),
)
.catch(() => {})
.finally(() => (this.saving_doors = false));
})

View file

@ -19,7 +19,7 @@ advent22Store().init();
app.mount("#app");
bulmaToast.setDefaults({
duration: 10000,
duration: 10e3,
pauseOnHover: true,
dismissible: true,
closeOnClick: false,

View file

@ -8,7 +8,7 @@ export class Advent22 {
public constructor() {
this.axios = axios.create({
timeout: 10000,
timeout: 10e3,
});
}