diff --git a/front/volume/src/components/Alert/Alert.svelte b/front/volume/src/components/Alert/Alert.svelte
index 35f69a6..dca3558 100644
--- a/front/volume/src/components/Alert/Alert.svelte
+++ b/front/volume/src/components/Alert/Alert.svelte
@@ -1,4 +1,4 @@
-
-
+
{message}
{#if form === true}
h2 {
- font-size: 2rem;
+ font-size: 1rem;
text-align: center;
}
diff --git a/front/volume/src/components/Alert/content.ts b/front/volume/src/components/Alert/content.ts
index 7af8866..f6b626e 100644
--- a/front/volume/src/components/Alert/content.ts
+++ b/front/volume/src/components/Alert/content.ts
@@ -3,8 +3,13 @@ import Alert__SvelteComponent_ from './Alert.svelte';
export const content = writable("")
export const popup = writable(null)
import { bind } from 'svelte-simple-modal';
+
let val;
export async function show_popup(message, form = true) {
+ const unsub = popup.subscribe((value) => {val = value})
+ unsub()
+ if (val != null)
+ return
popup.set(bind(Alert__SvelteComponent_, {
message,
form
@@ -18,7 +23,7 @@ export async function waitForCondition() {
if (val == null) {
console.log("finished",val)
unsub()
- return new Promise(resolve => setTimeout(resolve, 0));
+ return new Promise(resolve => setTimeout(resolve, 100));
} else {
console.log("waiting")
await new Promise(resolve => setTimeout(resolve, 1000));
diff --git a/front/volume/src/components/Channels.svelte b/front/volume/src/components/Channels.svelte
index 470fbf9..cf0fab6 100644
--- a/front/volume/src/components/Channels.svelte
+++ b/front/volume/src/components/Channels.svelte
@@ -1,8 +1,5 @@