Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Meet/RoomOptions.vue
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | export default { | ||||
$(e.target).find('.input-group-activable.active').removeClass('active') | $(e.target).find('.input-group-activable.active').removeClass('active') | ||||
}) | }) | ||||
}, | }, | ||||
methods: { | methods: { | ||||
configSave(name, value, callback) { | configSave(name, value, callback) { | ||||
const post = {} | const post = {} | ||||
post[name] = value | post[name] = value | ||||
axios.post('/api/v4/openvidu/rooms/' + this.room + '/config', post) | axios.post('/api/v4/meet/rooms/' + this.room + '/config', post) | ||||
.then(response => { | .then(response => { | ||||
this.$set(this.config, name, value) | this.$set(this.config, name, value) | ||||
if (callback) { | if (callback) { | ||||
callback(response.data) | callback(response.data) | ||||
} | } | ||||
this.$emit('config-update', this.config) | this.$emit('config-update', this.config) | ||||
this.$toast.success(response.data.message) | this.$toast.success(response.data.message) | ||||
}) | }) | ||||
Show All 34 Lines |