|
|
|
@ -14,7 +14,7 @@ |
|
|
|
/// limitations under the License.
|
|
|
|
///
|
|
|
|
|
|
|
|
import { Component, forwardRef, Input, OnInit } from '@angular/core'; |
|
|
|
import { Component, forwardRef, Input, OnDestroy, OnInit } from '@angular/core'; |
|
|
|
import { |
|
|
|
ControlValueAccessor, |
|
|
|
UntypedFormBuilder, |
|
|
|
@ -30,6 +30,7 @@ import { AppState } from '@app/core/core.state'; |
|
|
|
import { coerceBooleanProperty } from '@angular/cdk/coercion'; |
|
|
|
import { DeviceTransportConfiguration, DeviceTransportType } from '@shared/models/device.models'; |
|
|
|
import { deepClone } from '@core/utils'; |
|
|
|
import { Subscription } from 'rxjs'; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
selector: 'tb-device-transport-configuration', |
|
|
|
@ -104,9 +105,9 @@ export class DeviceTransportConfigurationComponent implements ControlValueAccess |
|
|
|
if (configuration) { |
|
|
|
delete configuration.type; |
|
|
|
} |
|
|
|
setTimeout(() => { |
|
|
|
// setTimeout(() => {
|
|
|
|
this.deviceTransportConfigurationFormGroup.patchValue({configuration}, {emitEvent: false}); |
|
|
|
}, 0); |
|
|
|
// }, 0);
|
|
|
|
} |
|
|
|
|
|
|
|
validate(): ValidationErrors | null { |
|
|
|
|