diff options
author | Marco <marcoambrosini@icloud.com> | 2023-01-23 12:12:30 +0000 |
---|---|---|
committer | Marco <marcoambrosini@icloud.com> | 2023-01-24 15:10:55 +0000 |
commit | 109d0e3f8336ba4636dcdf9238f494ccb7fc8fc6 (patch) | |
tree | 52e358a4ef6009f3e663e2f614b575daa8e82667 | |
parent | 87676d04dbf1a86a43ce198191e9a7aed609f7e3 (diff) |
Add title to modal
-rw-r--r-- | src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue b/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue index cbccebad6..ceb99549c 100644 --- a/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue +++ b/src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue @@ -23,6 +23,7 @@ <NcModal v-bind="$attrs" v-on="$listeners"> <div class="breakout-rooms-editor"> + <h2>{{ modalTitle }}</h2> <template v-if="!isEditingParticipants"> <h2>{{ t('spreed', 'Create rooms') }}</h2> <NcInputField :label="t('spreed', 'Number of breakout rooms')" type="number" :value.sync="amount" /> @@ -91,6 +92,14 @@ export default { } }, + computed: { + modalTitle() { + return this.isEditingParticipants + ? t('spreed', 'Assign participants to rooms') + : t('spreed', 'Configure breakout rooms') + }, + }, + methods: { handleCreateRooms() { this.$store.dispatch('configureBreakoutRoomsAction', { |