From fea7d2416666343af90d40ee6377e5e2b3ea1620 Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Sun, 17 Apr 2022 20:50:04 +0300 Subject: [PATCH] frontend: allow users to select channels --- .../src/components/pages/main/Main.svelte | 32 +++++++++++-------- .../src/components/pages/main/Sidebar.svelte | 5 +-- frontend/src/stores.js | 2 ++ 3 files changed, 24 insertions(+), 15 deletions(-) diff --git a/frontend/src/components/pages/main/Main.svelte b/frontend/src/components/pages/main/Main.svelte index e63274d..094e3ce 100644 --- a/frontend/src/components/pages/main/Main.svelte +++ b/frontend/src/components/pages/main/Main.svelte @@ -1,5 +1,5 @@ @@ -12,24 +12,30 @@ flex-direction: row; } - .loading-screen { + .fullscreen-message { display: flex; align-items: center; justify-content: center; - width: 100vw; - height: 100vh; + width: 100%; + height: 100%; overflow: hidden; background-color: var(--background-color-1); } -{#if $gatewayStatus.ready} -
+
+ {#if $gatewayStatus.ready} - -
-{:else} -
- connecting... -
-{/if} + {#if $selectedChannel.id === -1} +
+ no channel selected. +
+ {:else} + + {/if} + {:else} +
+ connecting... +
+ {/if} +
diff --git a/frontend/src/components/pages/main/Sidebar.svelte b/frontend/src/components/pages/main/Sidebar.svelte index 0f1662e..864025d 100644 --- a/frontend/src/components/pages/main/Sidebar.svelte +++ b/frontend/src/components/pages/main/Sidebar.svelte @@ -1,11 +1,11 @@