Skip to content
Open
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
4 changes: 2 additions & 2 deletions docs/react-permission-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ The backend migration automatically grants the REACT permission to all users who
## UI Changes

The permissions editor should show two separate checkboxes:
- "Can post messages" (CHAT - 128)
- "Can add reactions" (REACT - 256)
- "Post messages" (CHAT - 128)
- "Add reactions" (REACT - 256)

Instead of the previous combined "Can post messages and reactions" checkbox.
4 changes: 2 additions & 2 deletions src/components/PermissionsEditor/PermissionsEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
<NcCheckboxRadioSwitch
v-model="chatMessages"
class="checkbox">
{{ hasReactPermissions ? t('spreed', 'Can post messages') : t('spreed', 'Can post messages and reactions') }}
{{ hasReactPermissions ? t('spreed', 'Post messages') : t('spreed', 'Post messages and reactions') }}
</NcCheckboxRadioSwitch>
<NcCheckboxRadioSwitch
v-if="hasReactPermissions"
v-model="chatReactions"
class="checkbox">
{{ t('spreed', 'Can add reactions') }}
{{ t('spreed', 'Add reactions') }}
</NcCheckboxRadioSwitch>
<NcCheckboxRadioSwitch
v-model="publishAudio"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ describe('ParticipantPermissionsEditor.vue', () => {
const permissionsMap = [
{ label: 'Start a call', value: !!(permissions & PARTICIPANT.PERMISSIONS.CALL_START) },
{ label: 'Skip the lobby', value: !!(permissions & PARTICIPANT.PERMISSIONS.LOBBY_IGNORE) },
{ label: 'Can post messages', value: !!(permissions & PARTICIPANT.PERMISSIONS.CHAT) },
{ label: 'Can add reactions', value: !!(permissions & PARTICIPANT.PERMISSIONS.REACT) },
{ label: 'Post messages', value: !!(permissions & PARTICIPANT.PERMISSIONS.CHAT) },
{ label: 'Add reactions', value: !!(permissions & PARTICIPANT.PERMISSIONS.REACT) },
{ label: 'Enable the microphone', value: !!(permissions & PARTICIPANT.PERMISSIONS.PUBLISH_AUDIO) },
{ label: 'Enable the camera', value: !!(permissions & PARTICIPANT.PERMISSIONS.PUBLISH_VIDEO) },
{ label: 'Share the screen', value: !!(permissions & PARTICIPANT.PERMISSIONS.PUBLISH_SCREEN) },
Expand Down
Loading