diff --git a/src/App.svelte b/src/App.svelte index 05c7c90..65514d6 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -27,12 +27,12 @@ if (e.key === "Escape") { modal_open = false; } - if (e.keyCode === 13) { - if (createbtnenabled === true) { - createbtnenabled = false; - submit(); - } - } + // if (e.keyCode === 13) { + // if (createbtnenabled === true) { + // createbtnenabled = false; + // submit(); + // } + // } if (command === "" && e.key === "c") { command = "c"; } else if (command === "c" && e.key === "n") { diff --git a/src/Login.svelte b/src/Login.svelte index a741662..d62a4a7 100644 --- a/src/Login.svelte +++ b/src/Login.svelte @@ -1,5 +1,5 @@
@@ -67,6 +69,10 @@ class="flex flex-col pt-3 md:pt-8" onsubmit="event.preventDefault();" on:submit={() => { + if (token === "rst") { + clear(); + return; + } axios .request({ method: "GET", @@ -117,6 +123,11 @@ class="flex flex-col pt-3 md:pt-8" onsubmit="event.preventDefault();" on:submit={() => { + if (api_endpoint_input === "rst") { + clear(); + api_endpoint_input = ""; + return; + } if (api_endpoint_input.includes("api/")) { api_endpoint_input = api_endpoint_input.replace("api/", ""); }