diff --git a/frontend/src/components/modal.svelte b/frontend/src/components/modal.svelte
index 00d3377..5ae4a41 100644
--- a/frontend/src/components/modal.svelte
+++ b/frontend/src/components/modal.svelte
@@ -3,8 +3,9 @@
@@ -42,8 +44,8 @@
{#if show}
-
-
+
+
{#if title}
{title}
diff --git a/frontend/src/lib/dialogs.js b/frontend/src/lib/dialogs.js
index 2b5900f..af0f661 100644
--- a/frontend/src/lib/dialogs.js
+++ b/frontend/src/lib/dialogs.js
@@ -6,11 +6,17 @@ function newDialog(dialogComponent, data = {}) {
outlet.className = 'dialogoutlet';
document.getElementById('dialogoutlets').appendChild(outlet);
- const instance = new dialogComponent({ target: outlet, props: data });
+ const instance = new dialogComponent({
+ target: outlet,
+ intro: true,
+ props: data,
+ });
instance.$close = function() {
- instance.$destroy();
- outlet.remove();
+ setTimeout(() => {
+ instance.$destroy();
+ outlet.remove();
+ }, 200);
};
instance.$on('close', instance.$close);