Fixed toasts not working.
This commit is contained in:
+4
-2
@@ -1,6 +1,7 @@
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import { getJson } from "$lib/data";
|
||||
import { removeMessage } from "$lib/snackbar"
|
||||
import { Toast, ToastType } from "$lib/toast";
|
||||
import { addToast } from "./store";
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@@ -79,4 +80,5 @@
|
||||
<h1>Unable to load portfolio overview data</h1>
|
||||
</div>
|
||||
</div>
|
||||
{addToast(new Toast("Unable to load me.json", ToastType.Error, true, 3000))}
|
||||
{/await}
|
||||
Reference in New Issue
Block a user