send channel id for rename and delete op, #62

This commit is contained in:
jb-alvarado 2021-04-03 21:47:33 +02:00
parent 11555979e2
commit 4e90fb70fd

View File

@ -483,8 +483,12 @@ export default {
evt.preventDefault()
await this.$axios.patch(
'api/player/media/op/',
{ path: this.renamePath.replace(/^\/\//g, '/'), oldname: this.renameOldName, newname: this.renameNewName }
'api/player/media/op/', {
path: this.renamePath.replace(/^\/\//g, '/'),
oldname: this.renameOldName,
newname: this.renameNewName,
channel: this.configGui[this.configID].id
}
)
this.getPath(this.extensions, this.lastPath)
@ -527,7 +531,8 @@ export default {
pathName = this.deleteSource
}
await this.$axios.delete(`api/player/media/op/?file=${encodeURIComponent(file)}&path=${encodeURIComponent(pathName)}`)
await this.$axios.delete(
`api/player/media/op/?file=${encodeURIComponent(file)}&path=${encodeURIComponent(pathName)}&channel=${this.configGui[this.configID].id}`)
.catch(err => console.log(err))
this.$root.$emit('bv::hide::modal', 'delete-modal')