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

cleanup unused code

parent 8ffbb488
No related branches found
No related tags found
No related merge requests found
...@@ -137,11 +137,6 @@ export default { ...@@ -137,11 +137,6 @@ export default {
data () { data () {
return { return {
string: '', string: '',
backupstring: '',
deactivatedShow: {
id: null,
name: '',
},
} }
}, },
computed: { computed: {
...@@ -228,23 +223,6 @@ export default { ...@@ -228,23 +223,6 @@ export default {
id: this.selectedShow.id, id: this.selectedShow.id,
callback: () => { modal.hide() } callback: () => { modal.hide() }
}) })
/*
let updatedShow = this.getUpdateShowObject()
updatedShow.is_active = false
let uri = process.env.VUE_APP_API_STEERING_SHOWS + this.deactivatedShow.id + '/'
axios.put(uri, updatedShow, {
withCredentials: true,
headers: { 'Authorization': 'Bearer ' + this.$parent.$parent.user.access_token }
}).then(() => {
this.show.is_active = false
this.$refs.modalDeactivateShow.hide()
}).catch(error => {
this.$log.error(error.response.status + ' ' + error.response.statusText)
this.$log.error(error.response)
alert('Error: could not deactivate show. See console for details.')
// and we leave the modal open, so no call to its .hide function here
})
*/
}, },
activateShow (show) { activateShow (show) {
...@@ -252,23 +230,6 @@ export default { ...@@ -252,23 +230,6 @@ export default {
this.$store.dispatch('shows/activateShow', { this.$store.dispatch('shows/activateShow', {
id: this.selectedShow.id, id: this.selectedShow.id,
}) })
/*
this.show = show
let updatedShow = this.getUpdateShowObject()
updatedShow.is_active = true
let uri = process.env.VUE_APP_API_STEERING_SHOWS + show.id + '/'
axios.put(uri, updatedShow, {
withCredentials: true,
headers: { 'Authorization': 'Bearer ' + this.$parent.$parent.user.access_token }
}).then(() => {
this.show.is_active = true
this.$refs.modalDeactivateShow.hide()
}).catch(error => {
this.$log.error(error.response.status + ' ' + error.response.statusText)
this.$log.error(error.response)
alert('Error: could not activate show. See console for details.')
})
*/
}, },
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment