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
771415e2
Commit
771415e2
authored
Apr 23, 2022
by
Konrad Mohrfeldt
Browse files
chore: simplify choice generation
parent
674c8867
Pipeline
#1845
passed with stage
in 1 minute and 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/components/shows/AddShowModal.vue
View file @
771415e2
...
...
@@ -123,25 +123,14 @@
},
showTypeSelector
:
function
()
{
let
options
=
[]
for
(
let
i
in
this
.
types
)
{
options
.
push
({
value
:
this
.
types
[
i
].
id
,
text
:
this
.
types
[
i
].
type
})
}
return
options
return
this
.
types
.
map
(({
type
,
id
})
=>
({
text
:
type
,
value
:
id
}))
},
showFundingCategorySelector
:
function
()
{
let
options
=
[]
for
(
let
i
in
this
.
fundingcategories
)
{
options
.
push
({
value
:
this
.
fundingcategories
[
i
].
id
,
text
:
this
.
fundingcategories
[
i
].
abbrev
+
'
(
'
+
this
.
fundingcategories
[
i
].
fundingcategory
+
'
)
'
})
}
return
options
return
this
.
fundingcategories
.
map
(({
id
,
abbrev
,
fundingcategory
})
=>
({
value
:
id
,
text
:
`
${
abbrev
}
(
${
fundingcategory
}
)`
}))
},
...
mapGetters
({
...
...
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