Browse Source

Merge pull request #12089 from vvlladd28/bug/mobile-bundle/close-dialog

Fixed close mobile bundle dialog without add/edit
pull/12091/head
Andrew Shvayka 2 years ago
committed by GitHub
parent
commit
ff05b84d98
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 26
      ui-ngx/src/app/modules/home/pages/mobile/bundes/mobile-bundle-table-config.resolve.ts

26
ui-ngx/src/app/modules/home/pages/mobile/bundes/mobile-bundle-table-config.resolve.ts

@ -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();
}
});
}
}
});
}

Loading…
Cancel
Save