Load project when pressing enter

This commit is contained in:
Thomas Weber committed 2021-06-24 14:09:19 -05:00
1 parent fabc7916a1
commit 390218a61d
1 file changed
+8 -1
+8 -1
View File
@@ -29,6 +29,11 @@
};
const load = async () => {
if ($progress.visible) {
// Already running something
return;
}
try {
reset();
$progress.visible = true;
@@ -124,7 +129,9 @@
Project ID or URL
</label>
{#if $type === "id"}
<input type="text" bind:value={$projectId}>
<input type="text" bind:value={$projectId} on:keypress={(e) => {
if (e.key === 'Enter') load();
}}>
{/if}
</div>
<div>