diff --git a/frontend/src/lib/components/InviteGlobalUser.svelte b/frontend/src/lib/components/InviteGlobalUser.svelte
index c062191464..a703af5a0a 100644
--- a/frontend/src/lib/components/InviteGlobalUser.svelte
+++ b/frontend/src/lib/components/InviteGlobalUser.svelte
@@ -31,6 +31,7 @@
}
+
Add new user to instance
+
+ All instance users
@@ -90,7 +94,7 @@
{#if filteredUsers && users}
- {#each filteredUsers as { email, super_admin, login_type, name } (email)}
+ {#each filteredUsers.slice(0, nbDisplayed) as { email, super_admin, login_type, name } (email)}
| {email} |
{login_type} |
@@ -136,6 +140,13 @@
+ {#if filteredUsers && filteredUsers?.length > 50 && nbDisplayed < filteredUsers.length}
+ {nbDisplayed} users out of {filteredUsers.length}
+
+ {/if}
diff --git a/frontend/src/lib/components/home/ItemsList.svelte b/frontend/src/lib/components/home/ItemsList.svelte
index 7c90e5cefe..856f69ee42 100644
--- a/frontend/src/lib/components/home/ItemsList.svelte
+++ b/frontend/src/lib/components/home/ItemsList.svelte
@@ -387,30 +387,12 @@
{/each}
{:else if filteredItems.length === 0}
- {:else}
+ {:else if treeView}
+ {@const groupedItems = groupItems(items)}
- {#if treeView}
- {#each (groupItems(items) ?? []).slice(0, nbDisplayed) as item (item['folderName'] ?? 'user__' + item['username'])}
- {#if item}
- {
- loadScripts()
- loadFlows()
- loadApps()
- loadRawApps()
- }}
- {showCode}
- />
- {/if}
- {/each}
- {:else}
- {#each (items ?? []).slice(0, nbDisplayed) as item (item.type + '/' + item.path)}
-
- {/each}
- {/if}
+ {/if}
+ {/each}
- {#if items && items?.length > 30 && !treeView && nbDisplayed < items.length}
+ {#if groupedItems.length > 30 && nbDisplayed < groupedItems.length}
+ {nbDisplayed} root nodes out of {groupedItems.length}
+
+ {/if}
+ {:else}
+
+ {#each (items ?? []).slice(0, nbDisplayed) as item (item.type + '/' + item.path)}
+ - {
+ loadScripts()
+ loadFlows()
+ loadApps()
+ loadRawApps()
+ }}
+ {showCode}
+ />
+ {/each}
+
+ {#if items && items?.length > 30 && nbDisplayed < items.length}
{nbDisplayed} items out of {items.length}
{#if opened}
- {#each item.items.slice(0, showMax) as subItem (subItem['path'] ?? 'folder__' + subItem['folderName'])}
+ {#each item.items.slice(0, showMax) as subItem ((subItem['path'] ? subItem['type'] + '__' + subItem['path'] : undefined) ?? 'folder__' + subItem['folderName'])}
{/each}
{#if showMax < item.items.length}
+
+
{
@@ -117,7 +119,7 @@
{#if opened}
- {#each item.items.slice(0, showMax) as subItem (subItem['path'] ?? 'folder__' + subItem['folderName'])}
+ {#each item.items.slice(0, showMax) as subItem ((subItem['path'] ? subItem['type'] + '__' + subItem['path'] : undefined) ?? 'folder__' + subItem['folderName'])}
{#if invites?.length > 0}
- {#each invites as { email, is_admin, operator }}
+ {#each invites.slice(0, nbInviteDisplayed) as { email, is_admin, operator }}
| {email} |
@@ -314,6 +316,12 @@
{/if}
|
+ {#if invites && invites?.length > 50 && nbInviteDisplayed < invites.length}
+ {nbInviteDisplayed} invites out of {invites.length}
+
+ {/if}
{#if $userStore?.is_admin || $superadmin}
-
+ {#if $superadmin}
+
+ {/if}