Skip to content

Commit

Permalink
Fixing Issue #578: Adding deletion dialog (#889)
Browse files Browse the repository at this point in the history
Adding an additional dialog message to the 2.0 development branch
that will require the user to press yes twice before the entity
and all associated flows and code are deleted
  • Loading branch information
mhuang-ml authored and aebadirad committed Oct 24, 2019
1 parent 58bc83d commit 6f31170
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,10 @@ export class EntityModelerComponent implements AfterViewChecked {
deleteEntity(entity: Entity) {
let result = this.dialogService.confirm(`Really delete ${entity.name}?`, 'No', 'Yes');
result.subscribe(() => {
this.entitiesService.deleteEntity(entity);
let confirmResult = this.dialogService.confirm(`Are you sure really want to delete the ${entity.name} entity as it will delete the entity and all associated flows and code?`, 'No', 'Yes');
confirmResult.subscribe(() => {
this.entitiesService.deleteEntity(entity);
}, () => {});
}, () => {});
}

Expand Down

0 comments on commit 6f31170

Please sign in to comment.