From 21b935aa78fe64833efcfa57651c5e12386837d1 Mon Sep 17 00:00:00 2001 From: Hazel K Date: Thu, 3 Oct 2024 11:33:03 -0400 Subject: [PATCH] add toggle for "only with files" --- packages/frontend/src/pages/following-feed.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/frontend/src/pages/following-feed.vue b/packages/frontend/src/pages/following-feed.vue index 247de14aeb..f023c6affe 100644 --- a/packages/frontend/src/pages/following-feed.vue +++ b/packages/frontend/src/pages/following-feed.vue @@ -205,6 +205,7 @@ const latestNotesPagination: Paging<'notes/following'> = { const withUserRenotes = ref(false); const withUserReplies = ref(true); +const withOnlyFiles = ref(false); const userNotesPagination: Paging<'users/notes'> = { endpoint: 'users/notes' as const, limit: 10, @@ -212,6 +213,7 @@ const userNotesPagination: Paging<'users/notes'> = { userId: selectedUserId.value, withRenotes: withUserRenotes.value, withReplies: withUserReplies.value, + withFiles: withOnlyFiles.value, })), }; @@ -234,6 +236,16 @@ const headerActions = computed(() => isWideViewport.value ? [ type: 'switch', text: i18n.ts.showRepliesToOthersInTimeline, ref: withUserReplies, + disabled: withOnlyFiles, + }, + { + type: 'divider', + }, + { + type: 'switch', + text: i18n.ts.fileAttachedOnly, + ref: withOnlyFiles, + disabled: withUserReplies, }, ], ev.currentTarget ?? ev.target); },