fix: add additional case for when to show push/force push btn

This commit is contained in:
ndom91 2024-10-15 18:11:03 +02:00 committed by Nico Domino
parent 3620ad6093
commit f4dfceaa4d

View File

@ -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;
});