diff --git a/src/lib/AppErrorTypeToMessage.svelte b/src/lib/AppErrorTypeToMessage.svelte index b52c2195..4a49e45b 100644 --- a/src/lib/AppErrorTypeToMessage.svelte +++ b/src/lib/AppErrorTypeToMessage.svelte @@ -11,13 +11,12 @@ graphql(` fragment AppErrorFragment on StateError { revision @loading + level type: __typename ... on DeprecatedIngressError { - level ingress } ... on DeprecatedRegistryError { - level name registry repository @@ -25,18 +24,12 @@ tag } ... on InvalidNaisYamlError { - level detail } ... on NewInstancesFailingError { - level failingInstances } - ... on NoRunningInstancesError { - level - } ... on InboundAccessError { - level rule { application cluster @@ -45,8 +38,10 @@ namespace } } - ... on OutboundAccessError { + ... on NoRunningInstancesError { level + } + ... on OutboundAccessError { rule { application cluster diff --git a/src/routes/team/[team]/[env]/app/[app]/+layout.gql b/src/routes/team/[team]/[env]/app/[app]/+layout.gql index 56d53e06..9d2df3f9 100644 --- a/src/routes/team/[team]/[env]/app/[app]/+layout.gql +++ b/src/routes/team/[team]/[env]/app/[app]/+layout.gql @@ -1,10 +1,9 @@ -query AppNotificationState($app: String!, $team: String!, $env: String!) -@cache(policy: NetworkOnly) { +query AppNotificationState($app: String!, $team: String!, $env: String!) { app(name: $app, team: $team, env: $env) { appState { state errors { - level + __typename } } } diff --git a/src/routes/team/[team]/[env]/app/[app]/+layout.svelte b/src/routes/team/[team]/[env]/app/[app]/+layout.svelte index 3badac76..fa3a3108 100644 --- a/src/routes/team/[team]/[env]/app/[app]/+layout.svelte +++ b/src/routes/team/[team]/[env]/app/[app]/+layout.svelte @@ -1,8 +1,10 @@ {team} - Console @@ -71,20 +72,19 @@ title={tab} /> {/if} - + {/if} {/each} diff --git a/src/routes/team/[team]/[env]/job/[job]/+layout.gql b/src/routes/team/[team]/[env]/job/[job]/+layout.gql index 5478a095..ffb1a1d7 100644 --- a/src/routes/team/[team]/[env]/job/[job]/+layout.gql +++ b/src/routes/team/[team]/[env]/job/[job]/+layout.gql @@ -1,9 +1,9 @@ query JobNotificationState($job: String!, $team: String!, $env: String!) { - naisjob(name: $job, team: $team, env: $env) @loading(cascade: true) { - jobState @loading { + naisjob(name: $job, team: $team, env: $env) { + jobState { state errors { - level + __typename } } } diff --git a/src/routes/team/[team]/[env]/job/[job]/+layout.svelte b/src/routes/team/[team]/[env]/job/[job]/+layout.svelte index a0be5905..3006da6d 100644 --- a/src/routes/team/[team]/[env]/job/[job]/+layout.svelte +++ b/src/routes/team/[team]/[env]/job/[job]/+layout.svelte @@ -1,8 +1,10 @@ {team} - Console @@ -66,19 +68,19 @@ title={tab} /> {/if} - + {/if} {/each}