This commit is contained in:
Timothy Jaeryang Baek
2026-07-27 03:18:12 -04:00
parent 71511ccd5a
commit f59d86a10c
2 changed files with 40 additions and 42 deletions
+3 -4
View File
@@ -847,7 +847,6 @@
// ── Lifecycle ────────────────────────────────────────────────────────
onMount(async () => {
const terminal = getTerminal();
if (!terminal) return;
let handledDisplayFile = false;
@@ -902,7 +901,7 @@
}
});
if (!handledDisplayFile) {
if (!handledDisplayFile && terminal) {
loading = true;
// Discover server features on initial mount
@@ -1383,7 +1382,7 @@
<Spinner className="size-4" />
{$i18n.t('Uploading...')}
</div>
{:else if loading}
{:else if loading || ($selectedTerminalId && $terminalServers === null)}
<div class="flex justify-center pt-8"><Spinner className="size-4" /></div>
{:else if error}
<div class="p-4 text-xs">{error}</div>
@@ -1399,7 +1398,7 @@
</div>
{/if}
{#if !loading && !error && !uploading}
{#if !loading && !error && !uploading && !($selectedTerminalId && $terminalServers === null)}
{#if creatingFolder}
<div class="flex items-center gap-2 px-3 py-1.5">
<Folder className="size-4 shrink-0 text-blue-400 dark:text-blue-300" />