Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arkindex
Frontend
Commits
a6758fa2
Commit
a6758fa2
authored
3 years ago
by
Yoann Schneider
Committed by
Bastien Abadie
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
order templates by name then by id
parent
7554dc8e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1145
order templates by name then by id
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vue/Process/TemplateSelection.vue
+4
-1
4 additions, 1 deletion
vue/Process/TemplateSelection.vue
with
4 additions
and
1 deletion
vue/Process/TemplateSelection.vue
+
4
−
1
View file @
a6758fa2
...
...
@@ -31,6 +31,7 @@
import
{
mapMutations
,
mapState
,
mapActions
}
from
'
vuex
'
import
{
ensureArray
,
errorParser
}
from
'
~/js/helpers
'
import
{
orderBy
}
from
'
lodash
'
export
default
{
props
:
{
...
...
@@ -51,7 +52,9 @@ export default {
...
mapState
(
'
process
'
,
[
'
processes
'
]),
availableTemplates
()
{
// Filters all processes to only list the templates
return
ensureArray
(
Object
.
values
(
this
.
processes
)).
filter
(
process
=>
process
.
mode
===
'
template
'
)
const
templateList
=
ensureArray
(
Object
.
values
(
this
.
processes
)).
filter
(
process
=>
process
.
mode
===
'
template
'
)
// Order by name then by id
return
orderBy
(
templateList
,
[
'
name
'
,
'
id
'
])
},
process
()
{
return
this
.
processes
[
this
.
processId
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment