diff options
author | Joas Schilling <coding@schilljs.com> | 2020-11-02 16:38:23 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-11-26 09:46:44 +0100 |
commit | 1c0c8931d0ba2c6dc70bed5962ceb14ab1c2456c (patch) | |
tree | cf78a05c9bb53ac5d3aa08a05133abec944d53f0 /src/components | |
parent | e65bee649b3d0879a1b7e7ab8da731234e5e594e (diff) |
Only allow enabling SIP when the user can enable it
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/TopBar/TopBar.vue | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/components/TopBar/TopBar.vue b/src/components/TopBar/TopBar.vue index 483235430..1955b70b8 100644 --- a/src/components/TopBar/TopBar.vue +++ b/src/components/TopBar/TopBar.vue @@ -141,6 +141,7 @@ {{ t('spreed', 'Start time (optional)') }} </ActionInput> <ActionCheckbox + v-if="canUserEnableSIP" :checked="hasSIPEnabled" @change="toggleSIPEnabled"> {{ t('spreed', 'Enable SIP dial-in') }} @@ -296,6 +297,9 @@ export default { showModerationOptions() { return !this.isOneToOneConversation && this.canModerate }, + canUserEnableSIP() { + return this.conversation.canEnableSIP + }, token() { return this.$store.getters.getToken() }, @@ -311,6 +315,7 @@ export default { displayName: '', isFavorite: false, hasPassword: false, + canEnableSIP: false, type: CONVERSATION.TYPE.PUBLIC, lobbyState: WEBINAR.LOBBY.NONE, lobbyTimer: 0, |