Use Yes/No labels for desktop worktree confirm
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
44506ba2f5
commit
10571fafa5
2 files changed
+3
-3
No files matched your search
@@ -35,7 +35,7 @@ describe("showDesktopConfirmDialog", () => {
|
||||
expect(showMessageBoxMock).toHaveBeenCalledWith(
|
||||
ownerWindow,
|
||||
expect.objectContaining({
|
||||
buttons: ["Cancel", "Confirm"],
|
||||
buttons: ["No", "Yes"],
|
||||
message: "Delete worktree?",
|
||||
}),
|
||||
);
|
||||
@@ -49,7 +49,7 @@ describe("showDesktopConfirmDialog", () => {
|
||||
expect(result).toBe(false);
|
||||
expect(showMessageBoxMock).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
buttons: ["Cancel", "Confirm"],
|
||||
buttons: ["No", "Yes"],
|
||||
message: "Delete worktree?",
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -13,7 +13,7 @@ export async function showDesktopConfirmDialog(
|
||||
|
||||
const options = {
|
||||
type: "question" as const,
|
||||
buttons: ["Cancel", "Confirm"],
|
||||
buttons: ["No", "Yes"],
|
||||
defaultId: CONFIRM_BUTTON_INDEX,
|
||||
cancelId: 0,
|
||||
noLink: true,
|
||||
|
||||
Reference in new issue
Block a user