mirror of
https://github.com/stablyai/orca.git
synced 2026-09-25 16:02:38 +00:00
Remove delete confirmation for untracked files in Source Control (#283)
The window.confirm dialog for discarding untracked files is unnecessary friction — just discard immediately like tracked file changes.
This commit is contained in:
@@ -970,12 +970,6 @@ function UncommittedEntryRow({
|
||||
title={entry.area === 'untracked' ? 'Revert untracked file' : 'Discard changes'}
|
||||
onClick={(event) => {
|
||||
event.stopPropagation()
|
||||
if (
|
||||
entry.area === 'untracked' &&
|
||||
!window.confirm(`Delete untracked file "${entry.path}"? This cannot be undone.`)
|
||||
) {
|
||||
return
|
||||
}
|
||||
void onDiscard()
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user