Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 20 additions & 18 deletions src/components/BreakoutRoomsEditor/BreakoutRoomsEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,26 @@
max="20">

<label class="breakout-rooms-editor__caption">{{ t('spreed', 'Assignment method') }}</label>
<NcCheckboxRadioSwitch :checked.sync="mode"
value="1"
name="mode_radio"
type="radio">
{{ t('spreed', 'Automatically assign participants') }}
</NcCheckboxRadioSwitch>
<NcCheckboxRadioSwitch :checked.sync="mode"
value="2"
name="mode_radio"
type="radio">
{{ t('spreed', 'Manually assign participants') }}
</NcCheckboxRadioSwitch>
<NcCheckboxRadioSwitch :checked.sync="mode"
value="3"
name="mode_radio"
type="radio">
{{ t('spreed', 'Allow participants to choose') }}
</NcCheckboxRadioSwitch>
<fieldset>
<NcCheckboxRadioSwitch :checked.sync="mode"
value="1"
name="mode_radio"
type="radio">
{{ t('spreed', 'Automatically assign participants') }}
</NcCheckboxRadioSwitch>
<NcCheckboxRadioSwitch :checked.sync="mode"
value="2"
name="mode_radio"
type="radio">
{{ t('spreed', 'Manually assign participants') }}
</NcCheckboxRadioSwitch>
<NcCheckboxRadioSwitch :checked.sync="mode"
value="3"
name="mode_radio"
type="radio">
{{ t('spreed', 'Allow participants to choose') }}
</NcCheckboxRadioSwitch>
</fieldset>
</div>
<div class="breakout-rooms-editor__buttons">
<NcButton v-if="mode === '2'" type="primary" @click="isEditingParticipants = true">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
{{ resetButtonLabel }}
</NcButton>
<NcActions v-if="hasSelected"
type="primary"
:menu-title="t('spreed', 'Assign')">
<NcActionButton v-for="(item, index) in assignments"
:key="index"
Expand All @@ -95,7 +96,7 @@
</NcActionButton>
</NcActions>
<NcButton :disabled="!hasAssigned"
type="primary"
:type="confirmButtonType"
@click="handleSubmit">
{{ confirmButtonLabel }}
</NcButton>
Expand Down Expand Up @@ -204,6 +205,10 @@ export default {
return this.isReorganizingAttendees ? t('spreed', 'Confirm') : t('spreed', 'Create breakout rooms')
},

confirmButtonType() {
return this.hasUnassigned ? 'secondary' : 'primary'
},

resetButtonLabel() {
return t('spreed', 'Reset')
},
Expand Down