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
e46038f1
Commit
e46038f1
authored
May 07, 2020
by
jackie / Andrea Ida Malkah Klaura
Browse files
remove now uneeded showUpdates mixin
parent
f523fd3c
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/components/AddShowModal.vue
View file @
e46038f1
...
...
@@ -86,11 +86,10 @@
<
script
>
import
slugify
from
'
../mixins/slugify.js
'
import
showUpdates
from
'
../mixins/showUpdates.js
'
import
{
mapGetters
}
from
'
vuex
'
export
default
{
mixins
:
[
slugify
,
showUpdates
],
mixins
:
[
slugify
],
data
()
{
return
{
newShow
:
{
...
...
src/mixins/showUpdates.js
deleted
100644 → 0
View file @
f523fd3c
export
default
{
methods
:
{
/* returns a new minimal object from the current show object with all
properties needed for a PUT request to the /show/ endpoint */
getUpdateShowObject
()
{
let
s
=
{}
s
.
name
=
this
.
show
.
name
s
.
slug
=
this
.
show
.
slug
s
.
short_description
=
this
.
show
.
short_description
s
.
fundingcategory
=
this
.
show
.
fundingcategory
s
.
type
=
this
.
show
.
type
// we do not want the arrays do be passed as references, because the
// current show object should not get modified when the update object
// gets modified, therefore we use slice to clone the arrays
s
.
category
=
this
.
show
.
category
.
slice
()
s
.
hosts
=
this
.
show
.
hosts
.
slice
()
s
.
owners
=
this
.
show
.
owners
.
slice
()
s
.
language
=
this
.
show
.
language
.
slice
()
s
.
topic
=
this
.
show
.
topic
.
slice
()
s
.
musicfocus
=
this
.
show
.
musicfocus
.
slice
()
return
s
},
}
}
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