fix: remove duplicate clean-state sync action

Keep sync available only in the Git header
Simplify the clean working tree empty state
This commit is contained in:
Bohdan Triapitsyn
2026-05-06 01:31:23 +03:00
parent 0546de31f6
commit 9af3b49e7b
2 changed files with 3 additions and 43 deletions
+1 -12
View File
@@ -2241,18 +2241,7 @@ export const GitView: React.FC = () => {
/>
</>
) : (
<GitEmptyState
ahead={effectiveRemotes.length > 0 ? (status?.ahead ?? 0) : 0}
behind={effectiveRemotes.length > 0 ? (status?.behind ?? 0) : 0}
isSyncing={syncAction === 'sync'}
onSync={() => {
const remote = effectiveRemotes[0];
if (!remote) {
return;
}
void handleSyncAction('sync', remote);
}}
/>
<GitEmptyState />
)}
</div>
) : null}