Changeset View
Changeset View
Standalone View
Standalone View
src/resources/vue/Meet/RoomOptions.vue
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | export default { | ||||
$('#room-options-dialog')[0].addEventListener('show.bs.modal', e => { | $('#room-options-dialog')[0].addEventListener('show.bs.modal', e => { | ||||
$(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 = { [name]: value } | const post = { [name]: value } | ||||
axios.post('/api/v4/meet/rooms/' + this.room + '/config', post) | axios.post('/api/v4/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 37 Lines |