Skip to content

Commit

Permalink
Fixing Issue #578: Adding deletion dialog (#889) (#917)
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
clockworked247 authored and aebadirad committed Apr 23, 2018
1 parent f998be9 commit f7b48fd
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 f7b48fd

Please sign in to comment.