From 838ba29d892855b7dd1def3b02eb9354a125d8e0 Mon Sep 17 00:00:00 2001 From: Tyler Leonhardt Date: Sat, 1 May 2021 13:21:06 -0700 Subject: [PATCH] Use modal for deletion (Fixes #11) --- src/commands/listOperations.ts | 2 +- src/commands/taskOperations.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/listOperations.ts b/src/commands/listOperations.ts index a247c3f..323a64d 100644 --- a/src/commands/listOperations.ts +++ b/src/commands/listOperations.ts @@ -79,7 +79,7 @@ export class ListOperations extends vscode.Disposable { const tasksFormatted = lists ? `${lists.map(t => t.entity.displayName).join('", "')}` : list.entity.displayName; const choice = await vscode.window.showWarningMessage( - `"${tasksFormatted}" will be permanently deleted. You won't be able to undo this action.`, + `"${tasksFormatted}" will be permanently deleted. You won't be able to undo this action.`, { modal: true }, expected, 'Cancel'); if (choice !== expected) { diff --git a/src/commands/taskOperations.ts b/src/commands/taskOperations.ts index 366a796..887c0c2 100644 --- a/src/commands/taskOperations.ts +++ b/src/commands/taskOperations.ts @@ -141,7 +141,7 @@ export class TaskOperations extends vscode.Disposable { const tasksFormatted = tasks ? `${tasks.map(t => t.entity.title).join('", "')}` : task.entity.title; const choice = await vscode.window.showWarningMessage( - `"${tasksFormatted}" will be permanently deleted. You won't be able to undo this action.`, + `"${tasksFormatted}" will be permanently deleted. You won't be able to undo this action.`, { modal: true }, expected, 'Cancel'); if (choice !== expected) {