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

This commit is contained in:
hh committed 2026-10-14 05:15:27 +02:00
1 parent 2836dcb3a9
commit b8a38092eb
3 files changed
+94 -38

No files matched your search

@@ -80,6 +80,10 @@
}
}
export function refresh() {
return load();
}
onMount(load);
</script>
@@ -102,8 +106,13 @@
{#if confirming}
<div class="text">
<span>
{filesLabel(files.files)}, {formatBytes(files.bytes)}, уйдут в корзину
и перестанут скачиваться сами.
{filesLabel(files.files)}, {formatBytes(files.bytes)},
{plural(
files.files,
"уйдёт в корзину и перестанет скачиваться сам",
"уйдут в корзину и перестанут скачиваться сами",
"уйдут в корзину и перестанут скачиваться сами"
)}.
</span>
{#if files.gone > 0}
<small class="warn">
@@ -175,6 +184,18 @@
</Button>
{/if}
</div>
{:else if label && files && files.kept > 0}
<div class="files">
<div class="text">
<span>{label}</span>
<small>
{filesLabel(files.kept)}
есть и в других чатах, убрать
{plural(files.kept, "его", "их", "их")}
можно из списка ниже
</small>
</div>
</div>
{/if}
<style lang="scss">