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
14 changes: 0 additions & 14 deletions src/components/ConversationSettings/LockingSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,6 @@ export default {
},
},

watch: {
value(value) {
this.listable = value
},
},

mounted() {
if (this.token) {
this.listable = this.value || this.conversation.listable
} else {
this.listable = this.value
}
},

methods: {
async toggleReadOnly() {
const newReadOnly = this.isReadOnly ? CONVERSATION.STATE.READ_WRITE : CONVERSATION.STATE.READ_ONLY
Expand Down
8 changes: 4 additions & 4 deletions src/components/ConversationSettings/SipSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,20 @@ export default {
},

methods: {
async toggleSIPEnabled(checked) {
async toggleSIPEnabled() {
try {
await this.$store.dispatch('setSIPEnabled', {
token: this.token,
state: checked ? WEBINAR.SIP.ENABLED : WEBINAR.SIP.DISABLED,
state: !this.conversation.sipEnabled ? WEBINAR.SIP.ENABLED : WEBINAR.SIP.DISABLED,
})
if (checked) {
if (this.conversation.sipEnabled) {
showSuccess(t('spreed', 'SIP dial-in is now enabled'))
} else {
showSuccess(t('spreed', 'SIP dial-in is now disabled'))
}
} catch (e) {
// TODO check "precondition failed"
if (checked) {
if (!this.conversation.sipEnabled) {
console.error('Error occurred when enabling SIP dial-in', e)
showError(t('spreed', 'Error occurred when enabling SIP dial-in'))
} else {
Expand Down