mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-13 03:10:11 +02:00
Split codebase (#455)
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