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

@@ -12,6 +12,7 @@
import UptimeKuma from '$lib/components/svg/services/UptimeKuma.svelte';
import Ghost from '$lib/components/svg/services/Ghost.svelte';
import MeiliSearch from '$lib/components/svg/services/MeiliSearch.svelte';
import { session } from '$app/stores';
export let services;
async function newService() {
@@ -74,7 +75,9 @@
<div class="font-bold text-xl text-center truncate">
{service.name}
</div>
<div class="text-center truncate">Team {service.teams[0].name}</div>
{#if $session.teamId === '0'}
<div class="text-center truncate">Team {service.teams[0].name}</div>
{/if}
{#if !service.type || !service.fqdn}
<div class="font-bold text-center truncate text-red-500 group-hover:text-white">
Configuration missing