mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-26 11:21:30 +01:00
Refactor desktop app into separate client and proxy apps
This commit is contained in:
13
apps/yaak-client/components/git/uncommitted.tsx
Normal file
13
apps/yaak-client/components/git/uncommitted.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { UncommittedChangesStrategy } from '@yaakapp-internal/git';
|
||||
import { showConfirm } from '../../lib/confirm';
|
||||
|
||||
export async function promptUncommittedChangesStrategy(): Promise<UncommittedChangesStrategy> {
|
||||
const confirmed = await showConfirm({
|
||||
id: 'git-uncommitted-changes',
|
||||
title: 'Uncommitted Changes',
|
||||
description: 'You have uncommitted changes. Commit or reset your changes before pulling.',
|
||||
confirmText: 'Reset and Pull',
|
||||
color: 'danger',
|
||||
});
|
||||
return confirmed ? 'reset' : 'cancel';
|
||||
}
|
||||
Reference in New Issue
Block a user