Skip to content
Snippets Groups Projects
Commit 74122d51 authored by jackie / Andrea Ida Malkah Klaura's avatar jackie / Andrea Ida Malkah Klaura
Browse files

FIX #25 & #23

parent f43afc2c
No related branches found
No related tags found
No related merge requests found
......@@ -631,12 +631,13 @@ export default {
if (this.id !== this.show.cba_series_id) {
event.preventDefault()
let updatedShow = this.getUpdateShowObject()
updatedShow.cba_series_id = this.string
if (this.id === '') { updatedShow.cba_series_id = null }
else { updatedShow.cba_series_id = this.id }
axios.put(process.env.VUE_APP_API_STEERING_SHOWS + this.show.id + '/', updatedShow, {
withCredentials: true,
headers: { 'Authorization': 'Bearer ' + this.$parent.$parent.user.access_token }
}).then(() => {
this.show.cba_series_id = this.id
this.show.cba_series_id = updatedShow.cba_series_id
this.$refs.modalShowCBAid.hide()
}).catch(error => {
this.$log.error(error.response.status + ' ' + error.response.statusText)
......@@ -670,12 +671,12 @@ export default {
if (this.id !== this.show.predecessor) {
event.preventDefault()
let updatedShow = this.getUpdateShowObject()
updatedShow.predecessor_id = this.id
updatedShow.predecessor = this.id
axios.put(process.env.VUE_APP_API_STEERING_SHOWS + this.show.id + '/', updatedShow, {
withCredentials: true,
headers: { 'Authorization': 'Bearer ' + this.$parent.$parent.user.access_token }
}).then(() => {
this.show.predecessor_id = this.id
this.show.predecessor = this.id
this.$refs.modalShowPredecessor.hide()
}).catch(error => {
this.$log.error(error.response.status + ' ' + error.response.statusText)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment