File tree 1 file changed +8
-8
lines changed
src/routes/team/[team]/[env]/app/[app]
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 2
2
import { fragment , graphql , type Ingresses } from ' $houdini' ;
3
3
import IconLabel from ' $lib/components/IconLabel.svelte' ;
4
4
import TooltipAlignHack from ' $lib/components/TooltipAlignHack.svelte' ;
5
+ import WarningIcon from ' $lib/icons/WarningIcon.svelte' ;
5
6
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' ;
12
8
13
9
interface Props {
14
10
app: Ingresses ;
38
34
{#each ingresses as ingress (ingress )}
39
35
<IconLabel size ="medium" label ={ingress .url } href ={ingress .url }>
40
36
{#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
+ >
42
42
{#if group === ' EXTERNAL' }
43
43
<GlobeIcon />
44
44
{:else if group === ' INTERNAL' }
45
45
<HouseIcon />
46
46
{:else if group === ' AUTHENTICATED' }
47
47
<PadlockLockedIcon />
48
48
{:else }
49
- <QuestionmarkIcon />
49
+ <WarningIcon />
50
50
{/if }
51
51
</TooltipAlignHack >
52
52
{/ snippet }
You can’t perform that action at this time.
0 commit comments