diff --git a/app/tenant.go b/app/tenant.go index f581703..9b44676 100644 --- a/app/tenant.go +++ b/app/tenant.go @@ -33,6 +33,7 @@ type TenantService interface { type Tenant struct { ID string Name string + UserIDs []string CreatedAt time.Time UpdatedAt time.Time } diff --git a/assets/pages/admin/tenants/[id].svelte b/assets/pages/admin/tenants/[id].svelte index 0dbd604..882c63f 100644 --- a/assets/pages/admin/tenants/[id].svelte +++ b/assets/pages/admin/tenants/[id].svelte @@ -7,7 +7,6 @@ export let id: string - let newTenantName = '' let tenant = {} as Tenant let showAddTenantUserModal = false @@ -33,7 +32,22 @@
{localeTime(tenant.UpdatedAt)}
- +

Tenant Users

+ +{#if tenant.UserIDs && tenant.UserIDs.length} + + + + + {#each tenant.UserIDs as id (id)} + + + + {/each} +
ID
{id}
+{:else} + No users +{/if}