From 30812590dc2a0fa419a6e760da25d72e91597191 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 28 Mar 2021 15:11:31 +0200 Subject: [PATCH] Add project delete confirmation --- webapp/src/components/EntityDetailsBody.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webapp/src/components/EntityDetailsBody.tsx b/webapp/src/components/EntityDetailsBody.tsx index 8e57215..24277a7 100644 --- a/webapp/src/components/EntityDetailsBody.tsx +++ b/webapp/src/components/EntityDetailsBody.tsx @@ -136,6 +136,12 @@ class EntityDetailsBody extends Component { switch (card.kind) { case "project": { + + if (!window.confirm("Deleting the project will delete all the contents of the project. Do you want to proceed?")) { + return + } + + this.props.deleteProject(card.id) if (!this.props.demo) { API_DELETE_PROJECT(card.workspaceId, card.id)