disable show lib rules button if none

This commit is contained in:
Soufiane Fariss
2024-08-16 14:14:20 +02:00
parent d3e3c966d6
commit 8ca88d94d5

View File

@@ -16,13 +16,14 @@
v-model="showLibraryRules"
inputId="showLibraryRules"
:binary="true"
:disabled="showNamespaceChart"
:disabled="showNamespaceChart || libraryRuleMatchesCount === 0"
/>
<label for="showLibraryRules">
<span v-if="libraryRuleMatchesCount > 1">
Show {{ libraryRuleMatchesCount }} distinct library rules
</span>
<span v-else>Show 1 distinct library rule</span>
<span v-else-if="libraryRuleMatchesCount === 1">Show 1 distinct library rule</span>
<span v-else>No library rules matched</span>
</label>
</div>
<div class="flex flex-row align-items-center gap-2">