From aeebf6658ea2a9c33cca0f7fb088cca6efda53bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20Bj=C3=B8rnstad?= Date: Mon, 2 Oct 2023 11:33:08 +0200 Subject: [PATCH] @loading on teamquery --- schema.graphql | 2 +- src/routes/team/[team]/(teamTabs)/+layout.gql | 2 +- .../team/[team]/(teamTabs)/+layout.svelte | 20 ++++++++++++------- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/schema.graphql b/schema.graphql index 648b1eed..a46d9938 100644 --- a/schema.graphql +++ b/schema.graphql @@ -637,7 +637,7 @@ type Team implements Node { apps(after: Cursor, before: Cursor, first: Int, last: Int): AppConnection! deployKey: DeploymentKey! deployments(after: Cursor, before: Cursor, first: Int, last: Int, limit: Int): DeploymentConnection! - description: String + description: String! githubRepositories(after: Cursor, first: Int): GithubRepositoryConnection! id: ID! members(after: Cursor, before: Cursor, first: Int, last: Int): TeamMemberConnection! diff --git a/src/routes/team/[team]/(teamTabs)/+layout.gql b/src/routes/team/[team]/(teamTabs)/+layout.gql index dcd3c4dd..fcda8ef9 100644 --- a/src/routes/team/[team]/(teamTabs)/+layout.gql +++ b/src/routes/team/[team]/(teamTabs)/+layout.gql @@ -1,5 +1,5 @@ query TeamRoles($team: String!) { - team(name: $team) { + team(name: $team) @loading { viewerIsAdmin viewerIsMember } diff --git a/src/routes/team/[team]/(teamTabs)/+layout.svelte b/src/routes/team/[team]/(teamTabs)/+layout.svelte index e242b780..93c6a687 100644 --- a/src/routes/team/[team]/(teamTabs)/+layout.svelte +++ b/src/routes/team/[team]/(teamTabs)/+layout.svelte @@ -1,7 +1,9 @@