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