Skip to content

Commit 30857d0

Browse files
committed
ingress not found
1 parent 30b6079 commit 30857d0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/routes/team/[team]/[env]/app/[app]/Ingresses.svelte

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22
import { fragment, graphql, type Ingresses } from '$houdini';
33
import IconLabel from '$lib/components/IconLabel.svelte';
44
import TooltipAlignHack from '$lib/components/TooltipAlignHack.svelte';
5+
import WarningIcon from '$lib/icons/WarningIcon.svelte';
56
import { BodyShort, Heading } from '@nais/ds-svelte-community';
6-
import {
7-
GlobeIcon,
8-
HouseIcon,
9-
PadlockLockedIcon,
10-
QuestionmarkIcon
11-
} from '@nais/ds-svelte-community/icons';
7+
import { GlobeIcon, HouseIcon, PadlockLockedIcon } from '@nais/ds-svelte-community/icons';
128
139
interface Props {
1410
app: Ingresses;
@@ -38,15 +34,19 @@
3834
{#each ingresses as ingress (ingress)}
3935
<IconLabel size="medium" label={ingress.url} href={ingress.url}>
4036
{#snippet icon()}
41-
<TooltipAlignHack content="{group[0] + group.slice(1).toLowerCase()} ingress">
37+
<TooltipAlignHack
38+
content={group === 'UNKNOWN'
39+
? 'Ingress not found'
40+
: `${group[0]}${group.slice(1).toLowerCase()} ingress`}
41+
>
4242
{#if group === 'EXTERNAL'}
4343
<GlobeIcon />
4444
{:else if group === 'INTERNAL'}
4545
<HouseIcon />
4646
{:else if group === 'AUTHENTICATED'}
4747
<PadlockLockedIcon />
4848
{:else}
49-
<QuestionmarkIcon />
49+
<WarningIcon />
5050
{/if}
5151
</TooltipAlignHack>
5252
{/snippet}

0 commit comments

Comments
 (0)