From c335ce436ce3d9e60bab785a3eda01e39421570a Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Fri, 13 Dec 2024 16:03:01 +0100 Subject: [PATCH] feat(conversations): add user toggle for compact list Signed-off-by: Maksim Sukharev --- src/__mocks__/capabilities.ts | 2 ++ .../SettingsDialog/SettingsDialog.vue | 36 ++++++++++++++++++- src/constants.js | 5 +++ src/services/settingsService.ts | 5 +++ src/stores/settings.js | 7 ++++ 5 files changed, 54 insertions(+), 1 deletion(-) diff --git a/src/__mocks__/capabilities.ts b/src/__mocks__/capabilities.ts index 1646b320e7b..7cde0f3567c 100644 --- a/src/__mocks__/capabilities.ts +++ b/src/__mocks__/capabilities.ts @@ -134,6 +134,7 @@ export const mockedCapabilities: Capabilities = { conversations: { 'can-create': true, 'force-passwords': false, + 'compact-list': 0, }, federation: { enabled: false, @@ -167,6 +168,7 @@ export const mockedCapabilities: Capabilities = { ], conversations: [ 'can-create', + 'compact-list', ], federation: [], previews: [ diff --git a/src/components/SettingsDialog/SettingsDialog.vue b/src/components/SettingsDialog/SettingsDialog.vue index 5512d8cb099..430da31c25d 100644 --- a/src/components/SettingsDialog/SettingsDialog.vue +++ b/src/components/SettingsDialog/SettingsDialog.vue @@ -56,6 +56,19 @@ @close="showFilePicker = false" /> + + + {{ t('spreed', 'Show my conversations list in compact mode') }} + +