From d605df4bd23bef3505a83a09780983e5bf1671c7 Mon Sep 17 00:00:00 2001 From: Kiril Videlov Date: Mon, 12 Feb 2024 23:02:07 +0100 Subject: [PATCH] chore: add disabled state to buttons based on user authentication status --- .../src/lib/components/GithubIntegration.svelte | 13 ++++++++----- gitbutler-ui/src/lib/components/ProjectSetup.svelte | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/gitbutler-ui/src/lib/components/GithubIntegration.svelte b/gitbutler-ui/src/lib/components/GithubIntegration.svelte index b88ddf880..732ddb26d 100644 --- a/gitbutler-ui/src/lib/components/GithubIntegration.svelte +++ b/gitbutler-ui/src/lib/components/GithubIntegration.svelte @@ -8,6 +8,7 @@ export let userService: UserService; export let minimal = false; + export let disabled = false; $: user$ = userService.user$; @@ -44,9 +45,11 @@ {#if minimal} {#if $user$?.github_access_token} - + {:else} - + {/if} {:else}
@@ -62,7 +65,7 @@

-
@@ -100,6 +103,6 @@
3️⃣ Paste the code that you copied and follow the on-screen instructions.
- + diff --git a/gitbutler-ui/src/lib/components/ProjectSetup.svelte b/gitbutler-ui/src/lib/components/ProjectSetup.svelte index 1e34d63c5..dc1723ea8 100644 --- a/gitbutler-ui/src/lib/components/ProjectSetup.svelte +++ b/gitbutler-ui/src/lib/components/ProjectSetup.svelte @@ -168,7 +168,7 @@ {#if !$user$?.github_access_token} - + {/if}