Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2020-12-02 15:55:24 +0300
committerVincent Petry <vincent@nextcloud.com>2020-12-11 20:15:48 +0300
commit65238d1b8f487596dc79b19fe6a6be3a4fb417be (patch)
treedf44da5a069d248766065a21f66e76725c98b1eb /src
parent353206e1e695d531f2a51003ac93cfc3cd669bce (diff)
Adjustments for listable rooms after review
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'src')
-rw-r--r--src/components/ConversationSettings/ModerationSettings.vue14
-rw-r--r--src/constants.js2
-rw-r--r--src/store/conversationsStore.js2
3 files changed, 9 insertions, 9 deletions
diff --git a/src/components/ConversationSettings/ModerationSettings.vue b/src/components/ConversationSettings/ModerationSettings.vue
index 596e67476..85a93f160 100644
--- a/src/components/ConversationSettings/ModerationSettings.vue
+++ b/src/components/ConversationSettings/ModerationSettings.vue
@@ -22,19 +22,19 @@
<template>
<div>
<div class="app-settings-subsection">
- <div id="moderation_settings_listable_users_hint" class="app-settings-section__hint">
+ <div id="moderation_settings_listable_conversation_hint" class="app-settings-section__hint">
{{ t('spreed', 'Defines who can find this conversation') }}
</div>
<div>
- <label for="moderation_settings_listable_users_conversation_input">{{ t('spreed', 'Listable for') }}</label>
- <Multiselect id="moderation_settings_listable_users_conversation_input"
+ <label for="moderation_settings_listable_conversation_input">{{ t('spreed', 'Listable for') }}</label>
+ <Multiselect id="moderation_settings_listable_conversation_input"
v-model="listable"
:options="listableOptions"
:placeholder="t('spreed', 'Listable for')"
label="label"
track-by="value"
:disabled="isListableLoading"
- aria-describedby="moderation_settings_listable_users_conversation_hint"
+ aria-describedby="moderation_settings_listable_conversation_hint"
@input="saveListable" />
</div>
</div>
@@ -115,9 +115,9 @@ import DatetimePicker from '@nextcloud/vue/dist/Components/DatetimePicker'
import SipSettings from './SipSettings'
const listableOptions = [
- { value: 2, label: t('spreed', 'Everyone') },
- { value: 1, label: t('spreed', 'Regular users, without guests') },
- { value: 0, label: t('spreed', 'Participants only') },
+ { value: CONVERSATION.LISTABLE.NONE, label: t('spreed', 'None') },
+ { value: CONVERSATION.LISTABLE.USERS, label: t('spreed', 'Registered users') },
+ { value: CONVERSATION.LISTABLE.ALL, label: t('spreed', 'Everyone') },
]
export default {
diff --git a/src/constants.js b/src/constants.js
index 6c9b9be69..dfb298173 100644
--- a/src/constants.js
+++ b/src/constants.js
@@ -35,7 +35,7 @@ export const CONVERSATION = {
READ_ONLY: 1,
},
LISTABLE: {
- PARTICIPANTS: 0,
+ NONE: 0,
USERS: 1,
ALL: 2,
},
diff --git a/src/store/conversationsStore.js b/src/store/conversationsStore.js
index cb8b7745c..00a15d4a3 100644
--- a/src/store/conversationsStore.js
+++ b/src/store/conversationsStore.js
@@ -44,7 +44,7 @@ const DUMMY_CONVERSATION = {
participantFlags: PARTICIPANT.CALL_FLAG.DISCONNECTED,
participantType: PARTICIPANT.TYPE.USER,
readOnly: CONVERSATION.STATE.READ_ONLY,
- listable: CONVERSATION.LISTABLE.PARTICIPANTS,
+ listable: CONVERSATION.LISTABLE.NONE,
hasCall: false,
canStartCall: false,
lobbyState: WEBINAR.LOBBY.NONE,