mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
fix(tags): pass filtered tag count to client pagination
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user