CNF now opens settings

This commit is contained in:
Nicolai Ort 2021-04-07 20:43:53 +02:00
parent fca7a99689
commit d5ce648a53
1 changed files with 2 additions and 3 deletions

View File

@ -11,6 +11,7 @@
import Beamershow from "./Beamershow.svelte";
import Login from "./Login.svelte";
import Settings from "./Settings.svelte";
export let settings_open = false;
$: is_configured =
$apikey &&
$apikey !== "null" &&
@ -39,9 +40,7 @@
} else if (command === "c" && e.key === "n") {
command += "n";
} else if (command === "cn" && e.key === "f") {
clear();
settings_open = true;
is_configured = true;
command = "";
} else {
command = "";
@ -52,7 +51,7 @@
</script>
{#if settings_open && is_configured}
<Settings />
<Settings bind:settings_open />
{:else if is_configured}
<Beamershow />
{:else}