Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AURA
dashboard
Commits
4d7dec5a
Commit
4d7dec5a
authored
Apr 30, 2020
by
jackie / Andrea Ida Malkah Klaura
Browse files
cleanup unused code
parent
8ffbb488
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/ShowJumbotron.vue
View file @
4d7dec5a
...
...
@@ -137,11 +137,6 @@ export default {
data
()
{
return
{
string
:
''
,
backupstring
:
''
,
deactivatedShow
:
{
id
:
null
,
name
:
''
,
},
}
},
computed
:
{
...
...
@@ -228,23 +223,6 @@ export default {
id
:
this
.
selectedShow
.
id
,
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
)
{
...
...
@@ -252,23 +230,6 @@ export default {
this
.
$store
.
dispatch
(
'
shows/activateShow
'
,
{
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.')
})
*/
},
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment