From 5edc885c22c9c94fc6c9b470962d7d98494b036f Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 29 Sep 2023 17:05:35 +0900 Subject: [PATCH] fix --- packages/frontend/src/pages/timeline.vue | 2 +- packages/frontend/src/ui/deck/tl-column.vue | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/pages/timeline.vue b/packages/frontend/src/pages/timeline.vue index 3c29ccdce7..5bad689aee 100644 --- a/packages/frontend/src/pages/timeline.vue +++ b/packages/frontend/src/pages/timeline.vue @@ -151,7 +151,7 @@ const headerActions = $computed(() => [{ ref: $$(withReplies), }, { type: 'switch', - text: i18n.ts.onlyFiles, + text: i18n.ts.fileAttachedOnly, icon: 'ti ti-photo', ref: $$(onlyFiles), }], ev.currentTarget ?? ev.target); diff --git a/packages/frontend/src/ui/deck/tl-column.vue b/packages/frontend/src/ui/deck/tl-column.vue index b6dc6c7f21..aad73d73a1 100644 --- a/packages/frontend/src/ui/deck/tl-column.vue +++ b/packages/frontend/src/ui/deck/tl-column.vue @@ -67,6 +67,12 @@ watch($$(withReplies), v => { }); }); +watch($$(onlyFiles), v => { + updateColumn(props.column.id, { + onlyFiles: v, + }); +}); + onMounted(() => { if (props.column.tl == null) { setType();