From 068df3c735225074b7c6ed3986b1df62b3628f98 Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Fri, 31 May 2024 16:03:53 +0200 Subject: [PATCH] [wip] feat(ban): list existing bans Signed-off-by: Maksim Sukharev --- .../ConversationSettings/BanSettings.vue | 135 ++++++++++++++++++ .../ConversationSettingsDialog.vue | 9 +- 2 files changed, 143 insertions(+), 1 deletion(-) create mode 100644 src/components/ConversationSettings/BanSettings.vue diff --git a/src/components/ConversationSettings/BanSettings.vue b/src/components/ConversationSettings/BanSettings.vue new file mode 100644 index 00000000000..8465613912a --- /dev/null +++ b/src/components/ConversationSettings/BanSettings.vue @@ -0,0 +1,135 @@ + + + + + + + diff --git a/src/components/ConversationSettings/ConversationSettingsDialog.vue b/src/components/ConversationSettings/ConversationSettingsDialog.vue index f0e862f3ade..915452eb11f 100644 --- a/src/components/ConversationSettings/ConversationSettingsDialog.vue +++ b/src/components/ConversationSettings/ConversationSettingsDialog.vue @@ -40,6 +40,7 @@ + @@ -100,6 +101,7 @@ import NcAppSettingsDialog from '@nextcloud/vue/dist/Components/NcAppSettingsDia import NcAppSettingsSection from '@nextcloud/vue/dist/Components/NcAppSettingsSection.js' import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js' +import BanSettings from './BanSettings.vue' import BasicInfo from './BasicInfo.vue' import BotsSettings from './BotsSettings.vue' import BreakoutRoomsSettings from './BreakoutRoomsSettings.vue' @@ -122,11 +124,13 @@ const recordingEnabled = getCapabilities()?.spreed?.config?.call?.recording || f const recordingConsentCapability = getCapabilities()?.spreed?.features?.includes('recording-consent') const recordingConsent = getCapabilities()?.spreed?.config?.call?.['recording-consent'] !== CALL.RECORDING_CONSENT.OFF const supportFederationV1 = getCapabilities()?.spreed?.features?.includes('federation-v1') +const supportBanV1 = getCapabilities()?.spreed?.features?.includes('ban-v1') export default { name: 'ConversationSettingsDialog', components: { + BanSettings, BasicInfo, BotsSettings, BreakoutRoomsSettings, @@ -148,7 +152,10 @@ export default { setup() { const settingsStore = useSettingsStore() - return { settingsStore } + return { + settingsStore, + supportBanV1, + } }, data() {