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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user