ui: iam & settings update

This commit is contained in:
Andras Bacsai
2022-10-03 11:31:50 +02:00
parent 9a67cf7355
commit ed02c1ae36
18 changed files with 597 additions and 574 deletions

View File

@@ -1,7 +1,11 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { post } from '$lib/api';
import { errorNotification } from '$lib/common';
import { appSession } from '$lib/store';
if ($appSession.pendingInvitations.length === 0) {
goto('/iam/teams');
}
async function acceptInvitation(id: any, teamId: any) {
try {
await post(`/iam/team/${teamId}/invitation/accept`, { id });