mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-18 06:22:28 +03:00
Fix bug leaving PR button visible
This commit is contained in:
parent
c699ad4dfa
commit
ec24ffe979
@ -32,7 +32,8 @@
|
||||
const baseBranch = getContextStore(BaseBranch);
|
||||
|
||||
$: branch = $branchStore;
|
||||
$: hasPullRequest = branch.upstreamName && githubService.hasPr(branch.upstreamName);
|
||||
$: pr$ = githubService.getPr$(branch.upstreamName);
|
||||
$: hasPullRequest = branch.upstreamName && $pr$;
|
||||
|
||||
let meatballButton: HTMLDivElement;
|
||||
let visible = false;
|
||||
@ -82,7 +83,8 @@
|
||||
|
||||
isLoading = true;
|
||||
try {
|
||||
return await branchService.createPr(branch, $baseBranch.shortName, opts.draft);
|
||||
await branchService.createPr(branch, $baseBranch.shortName, opts.draft);
|
||||
await githubService.reload();
|
||||
} finally {
|
||||
isLoading = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user