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
32016c3c
Commit
32016c3c
authored
May 01, 2019
by
jackie / Andrea Ida Malkah Klaura
Browse files
FIX module warnings, only use response when needed
parent
08204baa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/ShowManagerModalShow.vue
View file @
32016c3c
...
...
@@ -315,7 +315,7 @@ export default {
axios
.
put
(
process
.
env
.
VUE_APP_API_STEERING_SHOWS
+
this
.
show
.
id
+
'
/
'
,
this
.
show
,
{
withCredentials
:
true
,
headers
:
{
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
}
}).
then
(
response
=>
{
}).
then
(
()
=>
{
this
.
$refs
.
modalShowName
.
hide
()
}).
catch
(
error
=>
{
this
.
show
.
name
=
this
.
backupstring
...
...
@@ -333,7 +333,7 @@ export default {
axios
.
put
(
process
.
env
.
VUE_APP_API_STEERING_SHOWS
+
this
.
show
.
id
+
'
/
'
,
this
.
show
,
{
withCredentials
:
true
,
headers
:
{
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
}
}).
then
(
response
=>
{
}).
then
(
()
=>
{
this
.
$refs
.
modalShowShortDescription
.
hide
()
}).
catch
(
error
=>
{
this
.
show
.
short_description
=
this
.
backupstring
...
...
@@ -351,7 +351,7 @@ export default {
axios
.
put
(
process
.
env
.
VUE_APP_API_STEERING_SHOWS
+
this
.
show
.
id
+
'
/
'
,
this
.
show
,
{
withCredentials
:
true
,
headers
:
{
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
}
}).
then
(
response
=>
{
}).
then
(
()
=>
{
this
.
$refs
.
modalShowDescription
.
hide
()
}).
catch
(
error
=>
{
this
.
show
.
description
=
this
.
backupstring
...
...
@@ -369,7 +369,7 @@ export default {
axios
.
put
(
process
.
env
.
VUE_APP_API_STEERING_SHOWS
+
this
.
show
.
id
+
'
/
'
,
this
.
show
,
{
withCredentials
:
true
,
headers
:
{
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
}
}).
then
(
response
=>
{
}).
then
(
()
=>
{
this
.
$refs
.
modalShowEmail
.
hide
()
}).
catch
(
error
=>
{
this
.
show
.
email
=
this
.
backupstring
...
...
@@ -387,7 +387,7 @@ export default {
axios
.
put
(
process
.
env
.
VUE_APP_API_STEERING_SHOWS
+
this
.
show
.
id
+
'
/
'
,
this
.
show
,
{
withCredentials
:
true
,
headers
:
{
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
}
}).
then
(
response
=>
{
}).
then
(
()
=>
{
this
.
$refs
.
modalShowWebsite
.
hide
()
}).
catch
(
error
=>
{
this
.
show
.
website
=
this
.
backupstring
...
...
@@ -405,7 +405,7 @@ export default {
axios
.
put
(
process
.
env
.
VUE_APP_API_STEERING_SHOWS
+
this
.
show
.
id
+
'
/
'
,
this
.
show
,
{
withCredentials
:
true
,
headers
:
{
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
}
}).
then
(
response
=>
{
}).
then
(
()
=>
{
this
.
$refs
.
modalShowCBAid
.
hide
()
}).
catch
(
error
=>
{
this
.
show
.
cba_series_id
=
this
.
backupid
...
...
@@ -423,7 +423,7 @@ export default {
axios
.
put
(
process
.
env
.
VUE_APP_API_STEERING_SHOWS
+
this
.
show
.
id
+
'
/
'
,
this
.
show
,
{
withCredentials
:
true
,
headers
:
{
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
}
}).
then
(
response
=>
{
}).
then
(
()
=>
{
this
.
$parent
.
getType
()
this
.
$refs
.
modalShowType
.
hide
()
}).
catch
(
error
=>
{
...
...
@@ -443,7 +443,7 @@ export default {
axios
.
put
(
process
.
env
.
VUE_APP_API_STEERING_SHOWS
+
this
.
show
.
id
+
'
/
'
,
this
.
show
,
{
withCredentials
:
true
,
headers
:
{
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
}
}).
then
(
response
=>
{
}).
then
(
()
=>
{
this
.
$refs
.
modalShowPredecessor
.
hide
()
}).
catch
(
error
=>
{
this
.
show
.
predecessor
=
this
.
backupid
...
...
@@ -461,7 +461,7 @@ export default {
axios
.
put
(
process
.
env
.
VUE_APP_API_STEERING_SHOWS
+
this
.
show
.
id
+
'
/
'
,
this
.
show
,
{
withCredentials
:
true
,
headers
:
{
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
}
}).
then
(
response
=>
{
}).
then
(
()
=>
{
this
.
$parent
.
getFundingCategory
()
this
.
$refs
.
modalShowType
.
hide
()
}).
catch
(
error
=>
{
...
...
@@ -480,7 +480,7 @@ export default {
axios
.
put
(
process
.
env
.
VUE_APP_API_STEERING_SHOWS
+
this
.
show
.
id
+
'
/
'
,
this
.
show
,
{
withCredentials
:
true
,
headers
:
{
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
}
}).
then
(
response
=>
{
}).
then
(
()
=>
{
this
.
$parent
.
getCategories
()
this
.
$refs
.
modalShowCategories
.
hide
()
}).
catch
(
error
=>
{
...
...
@@ -499,7 +499,7 @@ export default {
axios
.
put
(
process
.
env
.
VUE_APP_API_STEERING_SHOWS
+
this
.
show
.
id
+
'
/
'
,
this
.
show
,
{
withCredentials
:
true
,
headers
:
{
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
}
}).
then
(
response
=>
{
}).
then
(
()
=>
{
this
.
$parent
.
getTopics
()
this
.
$refs
.
modalShowTopics
.
hide
()
}).
catch
(
error
=>
{
...
...
@@ -518,7 +518,7 @@ export default {
axios
.
put
(
process
.
env
.
VUE_APP_API_STEERING_SHOWS
+
this
.
show
.
id
+
'
/
'
,
this
.
show
,
{
withCredentials
:
true
,
headers
:
{
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
}
}).
then
(
response
=>
{
}).
then
(
()
=>
{
this
.
$parent
.
getMusicfocus
()
this
.
$refs
.
modalShowMusicFocus
.
hide
()
}).
catch
(
error
=>
{
...
...
@@ -537,7 +537,7 @@ export default {
axios
.
put
(
process
.
env
.
VUE_APP_API_STEERING_SHOWS
+
this
.
show
.
id
+
'
/
'
,
this
.
show
,
{
withCredentials
:
true
,
headers
:
{
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
}
}).
then
(
response
=>
{
}).
then
(
()
=>
{
this
.
$parent
.
getLanguages
()
this
.
$refs
.
modalShowLanguages
.
hide
()
}).
catch
(
error
=>
{
...
...
@@ -556,7 +556,7 @@ export default {
axios
.
put
(
process
.
env
.
VUE_APP_API_STEERING_SHOWS
+
this
.
show
.
id
+
'
/
'
,
this
.
show
,
{
withCredentials
:
true
,
headers
:
{
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
}
}).
then
(
response
=>
{
}).
then
(
()
=>
{
this
.
$parent
.
getHosts
()
this
.
$refs
.
modalShowHosts
.
hide
()
}).
catch
(
error
=>
{
...
...
@@ -602,7 +602,7 @@ export default {
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
,
'
Content-Type
'
:
'
multipart/form-data
'
}
}).
then
(
response
=>
{
}).
then
(
()
=>
{
//this.$parent.getHosts()
this
.
$refs
.
modalLogo
.
hide
()
}).
catch
(
error
=>
{
...
...
@@ -616,6 +616,7 @@ export default {
},
saveImage
(
event
)
{
alert
(
'
Not yet implemented
'
)
console
.
log
(
event
)
},
/*
Functions to activate modals
...
...
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