Commit c257138b authored by Axel García's avatar Axel García

Tidy up "no matching results" logic

parent 7ede4e99
......@@ -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>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment