Skip to content

Commit 7db2916

Browse files
mhuang-mlaebadirad
authored andcommitted
Updating Issue #578: Update the deletion message (#925)
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.
1 parent 4dd1523 commit 7db2916

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

quick-start/src/main/ui/app/entity-modeler/entity-modeler.component.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,9 @@ export class EntityModelerComponent implements AfterViewChecked {
297297
}
298298

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

0 commit comments

Comments
 (0)