Skip to content

Commit

Permalink
Add project delete confirmation
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name committed Mar 28, 2021
1 parent de1d4da commit 3081259
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions webapp/src/components/EntityDetailsBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ class EntityDetailsBody extends Component<Props, State> {

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)
Expand Down

0 comments on commit 3081259

Please sign in to comment.