diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index f76d43acc4..9bafd2e2c0 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -949,11 +949,7 @@
{#if $user !== undefined && $user !== null} - +
-
{$user.name}
+
{$user.name}
+ + {#if showActiveUsers && ($config?.features?.enable_public_active_users_count || role === 'admin') && usage?.user_count} + 0 + ? `${$i18n.t('Running')}: ${usage.model_ids.join(', ')} ✨` + : $i18n.t('Active Users')} + > +
{ + if ($config?.features?.enable_public_active_users_count || role === 'admin') { + getUsageInfo(); + } + }} + > + + {usage.user_count} +
+
+ {/if}
{/if} @@ -217,7 +239,9 @@ {/if} + {/if} + {#if profile}
{/if} @@ -601,42 +625,6 @@
{$i18n.t('Sign Out')}
- - {#if showActiveUsers && ($config?.features?.enable_public_active_users_count || role === 'admin') && usage} - {#if usage?.user_count} -
- - 0 - ? `${$i18n.t('Running')}: ${usage.model_ids.join(', ')} ✨` - : ''} - > -
{ - if ($config?.features?.enable_public_active_users_count || role === 'admin') { - getUsageInfo(); - } - }} - > -
- - - -
- -
- - {$i18n.t('Active Users')}: - - - {usage?.user_count} - -
-
-
- {/if} - {/if}