This commit is contained in:
parent
46535e5353
commit
4ab99a55ad
@ -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">
|
||||||
|
@ -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"),
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user