Skip to content

Commit 5e05cd7

Browse files
committed
fix: Disable the PR button if there is no GitHub integration
If there is no GitHub integration, correctly disable the create PR button
1 parent 000bddb commit 5e05cd7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

apps/desktop/src/lib/branch/BranchHeader.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,10 @@
241241
{#if !$pr}
242242
<PullRequestButton
243243
click={async ({ draft }) => await createPr({ draft })}
244-
disabled={branch.commits.length === 0 || !$gitHost}
245-
tooltip={!$gitHost ? 'You can enable git host integration in the settings' : ''}
244+
disabled={branch.commits.length === 0 || !$gitHost || !$prService}
245+
tooltip={!$gitHost || !$prService
246+
? 'You can enable git host integration in the settings'
247+
: ''}
246248
loading={isLoading}
247249
/>
248250
{/if}

0 commit comments

Comments
 (0)