Only show teams for root team

This commit is contained in:
Andras Bacsai
2022-04-06 20:44:24 +02:00
parent ae4942ba29
commit 9f2f5b40c3
5 changed files with 18 additions and 5 deletions

View File

@@ -8,6 +8,7 @@
import Redis from '$lib/components/svg/databases/Redis.svelte';
import { post } from '$lib/api';
import { goto } from '$app/navigation';
import { session } from '$app/stores';
async function newDatabase() {
const { id } = await post('/databases/new', {});
@@ -59,7 +60,9 @@
<div class="font-bold text-xl text-center truncate">
{database.name}
</div>
<div class="text-center truncate">Team {database.teams[0].name}</div>
{#if $session.teamId === '0'}
<div class="text-center truncate">Team {database.teams[0].name}</div>
{/if}
{#if !database.type}
<div class="font-bold text-center truncate text-red-500 group-hover:text-white">
Configuration missing