Skip to content

Commit

Permalink
Updating Issue #578: Update the deletion message (#925)
Browse files Browse the repository at this point in the history
Removing the double confirmation dialog and updating the
deletion message that is displayed to the user to make it
clearer to what they are deleting.
  • Loading branch information
mhuang-ml authored and aebadirad committed Apr 25, 2018
1 parent b9ff1f5 commit 57e6896
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,9 @@ export class EntityModelerComponent implements AfterViewChecked {
}

deleteEntity(entity: Entity) {
let result = this.dialogService.confirm(`Really delete ${entity.name}?`, 'No', 'Yes');
let result = this.dialogService.confirm(`Delete the ${entity.name} entity?\n\nAny flows associated with the entity will also be deleted.`, 'No', 'Yes');
result.subscribe(() => {
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);
}, () => {});
this.entitiesService.deleteEntity(entity);
}, () => {});
}

Expand Down

0 comments on commit 57e6896

Please sign in to comment.