fix(tags): pass filtered tag count to client pagination

This commit is contained in:
Andras Bacsai
2026-10-25 18:09:17 +01:00
parent 11f794790d
commit 834b47a85f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -117,7 +117,7 @@
</article>
</template>
</div>
<x-client-pagination x-show="filteredTags.length > 0" class="mt-3 rounded-xl border border-neutral-200 bg-white shadow-sm dark:border-white/[0.08] dark:bg-white/[0.05]"
<x-client-pagination total="filteredTags.length" x-show="filteredTags.length > 0" class="mt-3 rounded-xl border border-neutral-200 bg-white shadow-sm dark:border-white/[0.08] dark:bg-white/[0.05]"
summary="`${rangeStart}-${rangeEnd} of ${filteredTags.length}`" page-size-model="pageSize"
storage-key="coolify.page-size.tags" :options="[12, 24, 48, 96]" />
</div>
@@ -151,7 +151,7 @@
x-text="tag.servicesCount"></div>
</a>
</template>
<x-client-pagination x-show="filteredTags.length > 0"
<x-client-pagination total="filteredTags.length" x-show="filteredTags.length > 0"
summary="`${rangeStart}-${rangeEnd} of ${filteredTags.length}`" page-size-model="pageSize"
storage-key="coolify.page-size.tags" :options="[12, 24, 48, 96]" />
</div>
+1 -1
View File
@@ -50,7 +50,7 @@ it('shows a card grid overview when tags exist and none is selected', function (
->assertSee('Table view', false)
->assertSee('Grid view', false)
->assertSee('tagsIndex', false)
->assertSee('tags-view', false)
->assertSee('Number(filteredTags.length)', false)
->assertDontSee('Switch tag')
->assertDontSee('Deploy webhook URL');
});