Browse Source
Merge pull request #14614 from mtsymbarov-del/fix/device-profile-transport-config-
Fix LwM2M bootstrap toggle not persisting "Add Bootstrap config" button state
pull/14711/head
Vladyslav Prykhodko
9 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
4 deletions
-
ui-ngx/src/app/modules/home/components/profile/device/lwm2m/lwm2m-bootstrap-config-servers.component.ts
|
|
|
@ -30,7 +30,7 @@ import { TranslateService } from '@ngx-translate/core'; |
|
|
|
import { DialogService } from '@core/services/dialog.service'; |
|
|
|
import { MatDialog } from '@angular/material/dialog'; |
|
|
|
import { Lwm2mBootstrapAddConfigServerDialogComponent } from '@home/components/profile/device/lwm2m/lwm2m-bootstrap-add-config-server-dialog.component'; |
|
|
|
import { mergeMap, takeUntil } from 'rxjs/operators'; |
|
|
|
import { filter, mergeMap, takeUntil } from 'rxjs/operators'; |
|
|
|
import { DeviceProfileService } from '@core/http/device-profile.service'; |
|
|
|
import { Lwm2mSecurityType } from '@shared/models/lwm2m-security-config.models'; |
|
|
|
|
|
|
|
@ -164,10 +164,8 @@ export class Lwm2mBootstrapConfigServersComponent implements OnInit, ControlValu |
|
|
|
panelClass: ['tb-dialog', 'tb-fullscreen-dialog'] |
|
|
|
}).afterClosed(); |
|
|
|
const addServerConfigObs = addDialogObs.pipe( |
|
|
|
filter((isBootstrap) => isBootstrap !== null), |
|
|
|
mergeMap((isBootstrap) => { |
|
|
|
if (isBootstrap === null) { |
|
|
|
return of(null); |
|
|
|
} |
|
|
|
return this.deviceProfileService.getLwm2mBootstrapSecurityInfoBySecurityType(isBootstrap, Lwm2mSecurityType.NO_SEC); |
|
|
|
}) |
|
|
|
); |
|
|
|
|