Fix toast behaviour
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nemunaire 2022-03-02 02:09:53 +01:00
parent 46535e5353
commit 4ab99a55ad
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
import { ToastsStore } from '../stores/toasts'; import { ToastsStore } from '../stores/toasts';
</script> </script>
<div class="toast-container position-absolute top-0 end-0 p-3"> <div class="toast-container position-fixed top-0 end-0 p-3">
{#each $ToastsStore.toasts as toast} {#each $ToastsStore.toasts as toast}
<div class="toast show" role="alert"> <div class="toast show" role="alert">
<div class="toast-header"> <div class="toast-header">

View File

@ -32,8 +32,8 @@
.catch((response) => { .catch((response) => {
pleaseWait = false; pleaseWait = false;
if (response.data) if (response.data)
addToast({ ToastsStore.addToast({
variant: "danger", color: "danger",
title: "Connexion impossible", title: "Connexion impossible",
msg: (response.data ? response.data.errmsg : "Impossible de contacter le serveur"), msg: (response.data ? response.data.errmsg : "Impossible de contacter le serveur"),
}); });