File tree 2 files changed +15
-19
lines changed
routes/team/[team]/[env]/app/[app]/status
2 files changed +15
-19
lines changed Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import { fragment , graphql , type WorkloadDeploy } from ' $houdini' ;
3
3
import Time from ' $lib/Time.svelte' ;
4
- import { Link , BodyShort , Heading } from ' @nais/ds-svelte-community' ;
4
+ import { BodyShort , Heading , Link } from ' @nais/ds-svelte-community' ;
5
5
import { ExternalLinkIcon } from ' @nais/ds-svelte-community/icons' ;
6
6
7
7
interface Props {
58
58
>
59
59
{/if }
60
60
{:else }
61
- <BodyShort >No deployments </BodyShort >
61
+ <BodyShort >No deployment metadata found for workload. </BodyShort >
62
62
{/if }
63
63
</div >
64
64
Original file line number Diff line number Diff line change 1
1
<script lang =" ts" >
2
2
import AppErrorTypeToMessage from ' $lib/AppErrorTypeToMessage.svelte' ;
3
- import Card from ' $lib/Card.svelte' ;
4
3
import GraphErrors from ' $lib/GraphErrors.svelte' ;
5
4
import { Alert } from ' @nais/ds-svelte-community' ;
6
5
import type { PageData } from ' ./$houdini' ;
14
13
let { AppNotificationState } = $derived (data );
15
14
</script >
16
15
17
- <Card >
16
+ <GraphErrors errors ={$AppNotificationState .errors } />
17
+
18
+ {#if $AppNotificationState .data }
19
+ {@const app = $AppNotificationState .data .team .environment .application }
20
+
18
21
<div >
19
- <GraphErrors errors ={$AppNotificationState .errors } />
22
+ {#if app .status .errors && app .status .errors .length > 0 }
23
+ {#each app .status .errors as error (error )}
24
+ <AppErrorTypeToMessage {error } />
25
+ {/each }
26
+ {:else }
27
+ <Alert variant =" info" >All nais!</Alert >
28
+ {/if }
20
29
</div >
21
- {#if $AppNotificationState .data }
22
- {@const app = $AppNotificationState .data .team .environment .application }
23
-
24
- <div >
25
- {#if app .status .errors && app .status .errors .length > 0 }
26
- {#each app .status .errors as error (error )}
27
- <AppErrorTypeToMessage {error } />
28
- {/each }
29
- {:else }
30
- <Alert variant =" info" >All nais!</Alert >
31
- {/if }
32
- </div >
33
- {/if }
34
- </Card >
30
+ {/if }
You can’t perform that action at this time.
0 commit comments