Skip to content

Commit

Permalink
Merge pull request #16 from sebadob/pagination-fix
Browse files Browse the repository at this point in the history
fix pagination and fewer "small" options
  • Loading branch information
sebadob authored Aug 12, 2023
2 parents 25e3918 + d811371 commit 317dbad
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/admin/clients/Clients.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
<ClientTileAddNew onSave={onSave}/>

<div id="clients">
{#each resClients as client (client.id)}
{#each resClientsPaginated as client (client.id)}
<div>
<ClientTile bind:client onSave={onSave}/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/admin/groups/Groups.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<GroupTileAddNew onSave={onSave}/>

<div id="groups">
{#each resGroups as group (group.id)}
{#each resClientsPaginated as group (group.id)}
<div>
<GroupTile bind:group onSave={onSave}/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/admin/scopes/Scopes.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
<ScopeTileAddNew onSave={onSave}/>

<div id="scopes">
{#each resScopes as scope (scope.id)}
{#each resScopesPaginated as scope (scope.id)}
<div>
<ScopeTile bind:attrs bind:scope onSave={onSave}/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/admin/userAttr/Attr.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<UserAttrTileAddNew onSave={onSave}/>

<div id="attrs">
{#each resAttr as attr (attr.name)}
{#each resAttrPaginated as attr (attr.name)}
<div>
<UserAttrTile bind:attr onSave={onSave}/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/admin/users/Users.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<UserTileAddNew onSave={onSave}/>

<div id="users">
{#each resUsers as user (user.id)}
{#each resUsersPaginated as user (user.id)}
<div>
<UserTile bind:user onSave={onSave}/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/Pagination.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
export let items = [];
export let resItems = [];
const options = [2, 3, 4, 7, 10, 15, 20, 30, 50, 100];
const options = [5, 7, 10, 15, 20, 30, 50, 100];
const iconSize = 16;
let itemsArr = [];
Expand Down

0 comments on commit 317dbad

Please sign in to comment.