From b8a38092eb48b3d44adb4b7499a8d7782e1bcfd0 Mon Sep 17 00:00:00 2001 From: h Date: Wed, 14 Oct 2026 05:15:27 +0200 Subject: [PATCH] fix(frontend): emptied chat keeps its storage head, shared-only chat explains why nothing can be bulk moved, back from a chat returns to the same place in the list, cleanup wording agrees in number --- .../src/lib/components/disk/ScopeFiles.svelte | 25 ++++- .../lib/components/disk/StoragePanel.svelte | 93 ++++++++++++------- frontend/src/lib/stores/storage.svelte.ts | 14 ++- 3 files changed, 94 insertions(+), 38 deletions(-) diff --git a/frontend/src/lib/components/disk/ScopeFiles.svelte b/frontend/src/lib/components/disk/ScopeFiles.svelte index 749fff9..82d746d 100644 --- a/frontend/src/lib/components/disk/ScopeFiles.svelte +++ b/frontend/src/lib/components/disk/ScopeFiles.svelte @@ -80,6 +80,10 @@ } } + export function refresh() { + return load(); + } + onMount(load); @@ -102,8 +106,13 @@ {#if confirming}
- {filesLabel(files.files)}, {formatBytes(files.bytes)}, уйдут в корзину - и перестанут скачиваться сами. + {filesLabel(files.files)}, {formatBytes(files.bytes)}, + {plural( + files.files, + "уйдёт в корзину и перестанет скачиваться сам", + "уйдут в корзину и перестанут скачиваться сами", + "уйдут в корзину и перестанут скачиваться сами" + )}. {#if files.gone > 0} @@ -175,6 +184,18 @@ {/if}
+{:else if label && files && files.kept > 0} +
+
+ {label} + + {filesLabel(files.kept)} + есть и в других чатах, убрать + {plural(files.kept, "его", "их", "их")} + можно из списка ниже + +
+
{/if}