mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-01 12:26:02 +03:00
Merge pull request #4832 from gitbutlerapp/fix-create-pr-button
fix: Disable the PR button if there is no GitHub integration
This commit is contained in:
commit
710308b4ea
@ -241,8 +241,10 @@
|
|||||||
{#if !$pr}
|
{#if !$pr}
|
||||||
<PullRequestButton
|
<PullRequestButton
|
||||||
click={async ({ draft }) => await createPr({ draft })}
|
click={async ({ draft }) => await createPr({ draft })}
|
||||||
disabled={branch.commits.length === 0 || !$gitHost}
|
disabled={branch.commits.length === 0 || !$gitHost || !$prService}
|
||||||
tooltip={!$gitHost ? 'You can enable git host integration in the settings' : ''}
|
tooltip={!$gitHost || !$prService
|
||||||
|
? 'You can enable git host integration in the settings'
|
||||||
|
: ''}
|
||||||
loading={isLoading}
|
loading={isLoading}
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
Loading…
Reference in New Issue
Block a user