RED-6589, fixed the confirm dialog not doing any actions.
This commit is contained in:
parent
5be1700cda
commit
20258b6500
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user