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()
.subscribe((res) => {
if (res && !isAdd) {
this.config.updateData();
} else {
this.store.pipe(select(selectUserSettingsProperty('notDisplayConfigurationAfterAddMobileBundle'))).pipe(
take(1)
).subscribe((settings: boolean) => {
if (!settings) {
this.configurationApp(null, res, true);
} else {
this.config.updateData();
}
});
if (res) {
if (!isAdd) {
this.config.updateData();
} else {
this.store.pipe(select(selectUserSettingsProperty('notDisplayConfigurationAfterAddMobileBundle'))).pipe(
take(1)
).subscribe((settings: boolean) => {
if (!settings) {
this.configurationApp(null, res, true);
} else {
this.config.updateData();
}
});
}
}
});
}