diff --git a/src/components/ConversationSettings/BanSettings.vue b/src/components/ConversationSettings/BanSettings/BanSettings.vue
similarity index 83%
rename from src/components/ConversationSettings/BanSettings.vue
rename to src/components/ConversationSettings/BanSettings/BanSettings.vue
index 8465613912a..6871dd527d8 100644
--- a/src/components/ConversationSettings/BanSettings.vue
+++ b/src/components/ConversationSettings/BanSettings/BanSettings.vue
@@ -9,14 +9,14 @@
{{ t('spreed', 'Banned users') }}
- TODO add a proper text here
+ {{ t('spreed', 'Manage the list of banned users in this conversation.') }}
{{ t('spreed', 'Manage bans') }}
@@ -24,12 +24,10 @@
- -
- {{ ban.bannedId }}
-
- {{ t('spreed', 'Unban') }}
-
-
+
@@ -55,7 +53,9 @@ import NcEmptyContent from '@nextcloud/vue/dist/Components/NcEmptyContent.js'
import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js'
import NcModal from '@nextcloud/vue/dist/Components/NcModal.js'
-import { getConversationBans, unbanActor } from '../../services/banService.ts'
+import BannedItem from './BannedItem.vue'
+
+import { getConversationBans, unbanActor } from '../../../services/banService.ts'
export default {
name: 'BanSettings',
@@ -65,6 +65,7 @@ export default {
NcEmptyContent,
NcLoadingIcon,
NcModal,
+ BannedItem,
// Icons
AccountCancel,
},
@@ -81,6 +82,7 @@ export default {
banList: [],
isLoading: true,
modal: false,
+ showDetails: false,
}
},
@@ -112,9 +114,6 @@ export default {
diff --git a/src/components/ConversationSettings/BanSettings/BannedItem.vue b/src/components/ConversationSettings/BanSettings/BannedItem.vue
new file mode 100644
index 00000000000..6ef35dc476d
--- /dev/null
+++ b/src/components/ConversationSettings/BanSettings/BannedItem.vue
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/ConversationSettings/ConversationSettingsDialog.vue b/src/components/ConversationSettings/ConversationSettingsDialog.vue
index 915452eb11f..63c778e2a19 100644
--- a/src/components/ConversationSettings/ConversationSettingsDialog.vue
+++ b/src/components/ConversationSettings/ConversationSettingsDialog.vue
@@ -101,7 +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 BanSettings from './BanSettings/BanSettings.vue'
import BasicInfo from './BasicInfo.vue'
import BotsSettings from './BotsSettings.vue'
import BreakoutRoomsSettings from './BreakoutRoomsSettings.vue'