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
d4efed87
Commit
d4efed87
authored
3 years ago
by
Erwan Rouchet
Browse files
Options
Downloads
Plain Diff
Merge branch 'filter-processes-name' into 'master'
filter processes by name or uuid Closes
#881
See merge request
!1159
parents
c46ca4cc
8bfb2ca1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1159
filter processes by name or uuid
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vue/Process/List.vue
+46
-8
46 additions, 8 deletions
vue/Process/List.vue
with
46 additions
and
8 deletions
vue/Process/List.vue
+
46
−
8
View file @
d4efed87
...
...
@@ -54,14 +54,32 @@
</select>
</span>
</p>
<p
class=
"control is-expanded"
>
<input
type=
"text"
class=
"input"
placeholder=
"Search by UUID"
v-model=
"filters.id"
/>
</p>
<div
class=
"field has-addons"
>
<p
class=
"control"
>
<span
class=
"select"
>
<select
v-model=
"filterField"
>
<option
value=
"name"
>
Name
</option>
<option
value=
"id"
>
UUID
</option>
</select>
</span>
</p>
<p
class=
"control is-expanded"
>
<input
v-if=
"filterField === 'name'"
type=
"text"
class=
"input"
placeholder=
"Filter processes by name"
v-model=
"filters.name"
/>
<input
v-else
type=
"text"
class=
"input"
placeholder=
"Filter processes by UUID"
v-model=
"filters.id"
/>
</p>
</div>
</div>
</form>
...
...
@@ -116,9 +134,11 @@ export default {
state
:
''
,
mode
:
''
,
id
:
''
,
name
:
''
,
with_workflow
:
''
,
created
:
''
},
filterField
:
'
name
'
,
loading
:
false
,
modes
:
PROCESS_MODES
,
states
:
PROCESS_STATES
...
...
@@ -137,6 +157,8 @@ export default {
updateFilters
()
{
this
.
filters
.
page
=
1
if
(
this
.
filters
.
mode
===
'
template
'
)
this
.
filters
.
with_workflow
=
''
if
(
this
.
filterField
===
'
name
'
)
this
.
filters
.
id
=
''
if
(
this
.
filterField
===
'
id
'
)
this
.
filters
.
name
=
''
this
.
$router
.
push
({
name
:
this
.
$route
.
name
,
query
:
removeEmptyStrings
(
this
.
filters
)
...
...
@@ -167,3 +189,19 @@ export default {
}
}
</
script
>
<
style
lang=
"sass"
scoped
>
.field.has-addons
{
width
:
100%
;
>
.control
{
>
.select
{
>
select
{
height
:
100%
}
}
>
.input
{
height
:
100%
}
}
}
</
style
>
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