diff --git a/src/components/TeamsOverview.svelte b/src/components/TeamsOverview.svelte index aa58ec18..d8400b8d 100644 --- a/src/components/TeamsOverview.svelte +++ b/src/components/TeamsOverview.svelte @@ -1,5 +1,5 @@ -{#if store.state.jwtinfo.userdetails.permissions.includes('USER:GET')} +{#if store.state.jwtinfo.userdetails.permissions.includes('TEAM:GET')} {#await teams_promise}
users are being loaded...
+teams are being loaded...
{$_('this-might-take-a-moment')}
- Status + {$_('organization')} | - Groups + Contact | Action @@ -79,66 +62,61 @@ | - {#each current_teams as u} - {#if Object.values(u) + {#each current_teams as t} + {#if Object.values(t) .toString() .toLowerCase() .includes(searchvalue)} -||
---|---|---|---|---|
- {#if u.profilePic}
-
-
- {/if}
- {u.firstname}
- {u.middlename || ''}
- {u.lastname}
-
-
- {u.email || u.username}
+ {t.name}
|
- {#if u.enabled}
- Active
- {:else}
- Inactive
- {/if}
+
+
+
+
+ {#if t.parentGroup}
+ {t.parentGroup.name}
+ {:else}no organization specified{/if}
+
+ |
- - {#each u.groups as g} - {g.name} - {/each} + |
+
+
+
+
+ {#if t.contact}
+ {JSON.stringify(t.contact)}
+ {:else}no contact specified{/if}
+
+ |
- {#if active_deletes[u.id] === true}
+ {#if active_deletes[t.id] === true}