Skip to content

Commit 75d5480

Browse files
committed
Restored paginator
1 parent 6c1a266 commit 75d5480

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/lib/components/v2/projects/datasets/DatasetImagesTable.svelte

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import { objectChanged } from '$lib/common/component_utilities';
77
import SlimSelect from 'slim-select';
88
import { onDestroy, tick } from 'svelte';
9+
import Paginator from '$lib/components/common/Paginator.svelte';
910
1011
/** @type {import('fractal-components/types/api').DatasetV2} */
1112
export let dataset;
@@ -683,6 +684,31 @@
683684
</tbody>
684685
</table>
685686
</div>
687+
<div class="pb-2 bg-white" class:sticky-bottom={!runWorkflowModal}>
688+
<div class="row">
689+
<div class="col-lg-6">
690+
<Paginator
691+
currentPage={imagePage.current_page}
692+
pageSize={imagePage.page_size}
693+
totalCount={imagePage.total_count}
694+
onPageChange={async () => {
695+
await searchImages();
696+
}}
697+
/>
698+
</div>
699+
{#if !runWorkflowModal}
700+
<div class="col-lg-3">
701+
<button
702+
class="btn btn-outline-secondary float-end"
703+
on:click={() => imageModal?.openForCreate()}
704+
>
705+
<i class="bi bi-plus-circle" />
706+
Add an image list entry
707+
</button>
708+
</div>
709+
{/if}
710+
</div>
711+
</div>
686712
</div>
687713
{/if}
688714

0 commit comments

Comments
 (0)