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
8be528a4
Commit
8be528a4
authored
Feb 11, 2019
by
jackie / Andrea Ida Malkah Klaura
Browse files
Merge branch 'develop' of gitlab.servus.at:autoradio/dashboard into develop
parents
1f4c5bf5
3888ff92
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/components/ShowManager.vue
View file @
8be528a4
...
...
@@ -131,9 +131,9 @@
<b-col
lg=
"6"
>
<p>
<!-- TODO: discuss: should this be visible to show owners or only to administrators? -->
<!-- TODO: fetch name for predecessor
_id
from steering api -->
<!-- TODO: fetch name for predecessor from steering api -->
<b-badge
variant=
"light"
>
Predecessor:
</b-badge>
<span
v-if=
"shows[currentShow].predecessor
_id
=== null"
><small><i>
This show has no predecessor show.
</i></small></span>
<span
v-if=
"shows[currentShow].predecessor === null"
><small><i>
This show has no predecessor show.
</i></small></span>
<span
v-else
>
{{ predecessorName }}
</span>
<img
src=
"../assets/16x16/emblem-system.png"
alt=
"edit"
v-on:click=
"$refs.appModalShow.showPredecessor()"
/>
</p>
...
...
@@ -309,7 +309,7 @@ export default {
computed
:
{
predecessorName
:
function
()
{
for
(
var
i
in
this
.
shows
)
{
if
(
this
.
shows
[
i
].
id
===
this
.
shows
[
this
.
currentShow
].
predecessor
_id
)
{
if
(
this
.
shows
[
i
].
id
===
this
.
shows
[
this
.
currentShow
].
predecessor
)
{
return
this
.
shows
[
i
].
name
}
}
...
...
src/components/ShowManagerModalShow.vue
View file @
8be528a4
...
...
@@ -396,21 +396,25 @@ export default {
}
},
savePredecessor
(
event
)
{
if
(
this
.
id
!==
this
.
show
.
predecessor
_id
)
{
if
(
this
.
id
!==
this
.
show
.
predecessor
)
{
event
.
preventDefault
()
<<<<<<<
HEAD
this
.
backupid
=
this
.
show
.
predecessor_id
this
.
show
.
predecessor_id
=
this
.
id
console
.
log
(
this
.
show
.
predecessor_id
)
axios
.
put
(
process
.
env
.
VUE_APP_API_STEERING_SHOWS
+
this
.
show
.
id
+
'
/
'
,
this
.
show
,
{
=======
this
.
backupid
=
this
.
show
.
predecessor
this
.
show
.
predecessor
=
this
.
id
console
.
log
(
this
.
show
.
predecessor
)
axios
.
put
(
process
.
env
.
API_STEERING_SHOWS
+
this
.
show
.
id
+
'
/
'
,
this
.
show
,
{
>>>>>>>
3888
ff92fbc548600ff336cd605a9e1087a603d9
withCredentials
:
true
,
headers
:
{
'
Authorization
'
:
'
Bearer
'
+
this
.
$parent
.
$parent
.
user
.
access_token
}
}).
then
(
response
=>
{
// this.$parent.shows[this.$parent.currentShow].predecessor_id = this.show.predecessor_id
console
.
log
(
'
saved
'
+
this
.
show
.
predecessor_id
)
console
.
log
(
response
)
this
.
$refs
.
modalShowPredecessor
.
hide
()
}).
catch
(
error
=>
{
this
.
show
.
predecessor
_id
=
this
.
backupid
this
.
show
.
predecessor
=
this
.
backupid
console
.
log
(
'
Error:
'
)
console
.
log
(
error
)
alert
(
'
Error: could not save the new show information
'
)
...
...
@@ -555,7 +559,7 @@ export default {
this
.
$refs
.
modalShowCBAid
.
show
()
},
showPredecessor
()
{
this
.
id
=
this
.
show
.
predecessor
_id
this
.
id
=
this
.
show
.
predecessor
this
.
$refs
.
modalShowPredecessor
.
show
()
},
showType
()
{
...
...
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