An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(tags): pass filtered tag count to client pagination
Andras Bacsai834b47a85f4c
diff --git a/resources/views/livewire/tags/show.blade.php b/resources/views/livewire/tags/show.blade.phpindex 65904408df..69f7be3bbe 100644--- a/resources/views/livewire/tags/show.blade.php+++ b/resources/views/livewire/tags/show.blade.php@@ -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>diff --git a/tests/Feature/TagsShowPageTest.php b/tests/Feature/TagsShowPageTest.phpindex e3ff87911b..696fee406a 100644--- a/tests/Feature/TagsShowPageTest.php+++ b/tests/Feature/TagsShowPageTest.php@@ -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');});