Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c257138b
Commit
c257138b
authored
Jul 28, 2020
by
Axel García
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tidy up "no matching results" logic
parent
7ede4e99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
app/assets/javascripts/vue_shared/components/sidebar/labels_select_vue/dropdown_contents_labels_view.vue
...debar/labels_select_vue/dropdown_contents_labels_view.vue
+4
-1
No files found.
app/assets/javascripts/vue_shared/components/sidebar/labels_select_vue/dropdown_contents_labels_view.vue
View file @
c257138b
...
...
@@ -52,6 +52,9 @@ export default {
return
true
;
},
showNoMatchingResultsMessage
()
{
return
!
this
.
labelsFetchInProgress
&&
!
this
.
visibleLabels
.
length
;
},
},
watch
:
{
searchKey
(
value
)
{
...
...
@@ -176,7 +179,7 @@ export default {
@
clickLabel=
"handleLabelClick(label)"
/>
</li>
<li
v-show=
"
!labelsFetchInProgress && !visibleLabels.length"
class=
"p-2
text-center"
>
<li
v-show=
"
showNoMatchingResultsMessage"
class=
"gl-p-3 gl-
text-center"
>
{{
__
(
'
No matching results
'
)
}}
</li>
</smart-virtual-list>
...
...
Write
Preview
Markdown
is supported
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