UI: Fixed close mobile bundle dialog without add/edit

This commit is contained in:
Vladyslav_Prykhodko 2024-11-21 10:12:42 +02:00
parent 4e3201cc5b
commit a90076f523

View File

@ -146,18 +146,20 @@ export class MobileBundleTableConfigResolver {
} }
}).afterClosed() }).afterClosed()
.subscribe((res) => { .subscribe((res) => {
if (res && !isAdd) { if (res) {
this.config.updateData(); if (!isAdd) {
} else { this.config.updateData();
this.store.pipe(select(selectUserSettingsProperty('notDisplayConfigurationAfterAddMobileBundle'))).pipe( } else {
take(1) this.store.pipe(select(selectUserSettingsProperty('notDisplayConfigurationAfterAddMobileBundle'))).pipe(
).subscribe((settings: boolean) => { take(1)
if (!settings) { ).subscribe((settings: boolean) => {
this.configurationApp(null, res, true); if (!settings) {
} else { this.configurationApp(null, res, true);
this.config.updateData(); } else {
} this.config.updateData();
}); }
});
}
} }
}); });
} }