From 9ee5fc9a1562be1b02e7706597896365a29ec8f8 Mon Sep 17 00:00:00 2001 From: Insert5StarName Date: Thu, 28 Sep 2023 11:32:29 +0200 Subject: [PATCH] upd: add setting for collapsing files --- packages/frontend/src/pages/settings/general.vue | 2 ++ packages/frontend/src/store.ts | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/packages/frontend/src/pages/settings/general.vue b/packages/frontend/src/pages/settings/general.vue index 30015bb285..217cd6ccf4 100644 --- a/packages/frontend/src/pages/settings/general.vue +++ b/packages/frontend/src/pages/settings/general.vue @@ -47,6 +47,7 @@ SPDX-License-Identifier: AGPL-3.0-only {{ i18n.ts.showNoteActionsOnlyHover }} {{ i18n.ts.showClipButtonInNoteFooter }} {{ i18n.ts.collapseRenotes }} + Collapse files Load conversation on replies {{ i18n.ts.enableAdvancedMfm }} {{ i18n.ts.enableAnimatedMfm }} @@ -225,6 +226,7 @@ const showNoteActionsOnlyHover = computed(defaultStore.makeGetterSetter('showNot const showClipButtonInNoteFooter = computed(defaultStore.makeGetterSetter('showClipButtonInNoteFooter')); const reactionsDisplaySize = computed(defaultStore.makeGetterSetter('reactionsDisplaySize')); const collapseRenotes = computed(defaultStore.makeGetterSetter('collapseRenotes')); +const collapseFiles = computed(defaultStore.makeGetterSetter('collapseFiles')); const autoloadConversation = computed(defaultStore.makeGetterSetter('autoloadConversation')); const reduceAnimation = computed(defaultStore.makeGetterSetter('animation', v => !v, v => !v)); const useBlurEffectForModal = computed(defaultStore.makeGetterSetter('useBlurEffectForModal')); diff --git a/packages/frontend/src/store.ts b/packages/frontend/src/store.ts index 3805c95550..85848ef273 100644 --- a/packages/frontend/src/store.ts +++ b/packages/frontend/src/store.ts @@ -65,6 +65,10 @@ export const defaultStore = markRaw(new Storage('base', { where: 'account', default: true, }, + collapseFiles: { + where: 'account', + default: true, + }, rememberNoteVisibility: { where: 'account', default: false,