From 2c7149546582e58fc7421ad68869b16a64b5f4ad Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 6 Oct 2024 05:04:30 -0700 Subject: feat(user): live update for mutations --- src/routes/user/[user]/+page.svelte | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) (limited to 'src/routes') diff --git a/src/routes/user/[user]/+page.svelte b/src/routes/user/[user]/+page.svelte index 08bfd978..03e13f11 100644 --- a/src/routes/user/[user]/+page.svelte +++ b/src/routes/user/[user]/+page.svelte @@ -30,7 +30,11 @@ const setCategoriesQuery = graphql(` mutation SetCategories($categories: [String!]!) { setPinnedBadgeWallCategories(categories: $categories) { - pinned_badge_wall_categories + id + + preferences { + pinned_badge_wall_categories + } } } `); @@ -38,7 +42,11 @@ const toggleCategoryQuery = graphql(` mutation ToggleCategory($category: String!) { togglePinnedBadgeWallCategory(category: $category) { - pinned_badge_wall_categories + id + + preferences { + pinned_badge_wall_categories + } } } `); @@ -46,7 +54,11 @@ const toggleHideMissingBadgesQuery = graphql(` mutation ToggleHideMissingBadges { toggleHideMissingBadges { - hide_missing_badges + id + + preferences { + hide_missing_badges + } } } `); @@ -54,7 +66,11 @@ const toggleHideAWCBadgesQuery = graphql(` mutation ToggleHideAWCBadges { toggleHideAWCBadges { - hide_awc_badges + id + + preferences { + hide_awc_badges + } } } `); @@ -62,7 +78,11 @@ const setBiographyQuery = graphql(` mutation SetBiography($biography: String!) { setBiography(biography: $biography) { - biography + id + + preferences { + biography + } } } `); @@ -70,7 +90,11 @@ const setBadgeWallCSSQuery = graphql(` mutation SetBadgeWallCSS($css: String!) { setBadgeWallCSS(css: $css) { - badge_wall_css + id + + preferences { + badge_wall_css + } } } `); -- cgit v1.2.3