mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-23 20:54:50 +03:00
fix: add additional case for when to show push/force push btn
This commit is contained in:
parent
3620ad6093
commit
f4dfceaa4d
@ -111,6 +111,7 @@
|
||||
let canPush = $derived.by(() => {
|
||||
if (branchUpstreamPatches.length > 0) return true;
|
||||
if (branchPatches.find((p) => p.status !== 'localAndRemote')) return true;
|
||||
if (branchPatches.some((p) => p.remoteCommitId !== p.id)) return true;
|
||||
return false;
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user