RED-6589, fixed the confirm dialog not doing any actions.

This commit is contained in:
George 2023-04-13 13:02:50 +03:00
parent 5be1700cda
commit 20258b6500

View File

@ -144,14 +144,12 @@ export class EditDossierDialogComponent extends BaseDialogComponent implements A
changeTab(key: Section) {
if (this.changed) {
this._openConfirmDialog().then(async result => {
if (result in ConfirmOptions) {
if (result === ConfirmOptions.CONFIRM) {
await this.save();
} else {
this.revert();
}
this.activeNav = key;
if (result === ConfirmOptions.CONFIRM) {
await this.save();
} else {
this.revert();
}
this.activeNav = key;
});
} else {
this.activeNav = key;