Browse Source

UI: Fixed LWM2M Bootstrap configured doesn't display after saving

pull/13512/head
Vladyslav_Prykhodko 1 year ago
parent
commit
5ba732d80b
  1. 9
      ui-ngx/src/app/modules/home/pages/device-profile/device-profile-tabs.component.ts

9
ui-ngx/src/app/modules/home/pages/device-profile/device-profile-tabs.component.ts

@ -14,7 +14,7 @@
/// limitations under the License. /// limitations under the License.
/// ///
import { Component, DestroyRef } from '@angular/core'; import { Component, DestroyRef, OnInit } from '@angular/core';
import { Store } from '@ngrx/store'; import { Store } from '@ngrx/store';
import { AppState } from '@core/core.state'; import { AppState } from '@core/core.state';
import { EntityTabsComponent } from '../../components/entity/entity-tabs.component'; import { EntityTabsComponent } from '../../components/entity/entity-tabs.component';
@ -31,7 +31,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
templateUrl: './device-profile-tabs.component.html', templateUrl: './device-profile-tabs.component.html',
styleUrls: [] styleUrls: []
}) })
export class DeviceProfileTabsComponent extends EntityTabsComponent<DeviceProfile> { export class DeviceProfileTabsComponent extends EntityTabsComponent<DeviceProfile> implements OnInit {
deviceTransportTypes = Object.values(DeviceTransportType); deviceTransportTypes = Object.values(DeviceTransportType);
@ -55,4 +55,9 @@ export class DeviceProfileTabsComponent extends EntityTabsComponent<DeviceProfil
}); });
} }
protected setEntity(entity: DeviceProfile) {
this.isTransportTypeChanged = false;
super.setEntity(entity);
}
} }

Loading…
Cancel
Save