|
|
@ -14,7 +14,7 @@ |
|
|
/// limitations under the License.
|
|
|
/// limitations under the License.
|
|
|
///
|
|
|
///
|
|
|
|
|
|
|
|
|
import { Component, Input, OnInit } from '@angular/core'; |
|
|
import { ChangeDetectorRef, Component, Input, OnInit } from '@angular/core'; |
|
|
import { FormControl } from '@angular/forms'; |
|
|
import { FormControl } from '@angular/forms'; |
|
|
import { Router } from '@angular/router'; |
|
|
import { Router } from '@angular/router'; |
|
|
import { Store } from '@ngrx/store'; |
|
|
import { Store } from '@ngrx/store'; |
|
|
@ -53,6 +53,7 @@ export class DeviceGatewayCommandComponent implements OnInit { |
|
|
constructor(protected router: Router, |
|
|
constructor(protected router: Router, |
|
|
protected store: Store<AppState>, |
|
|
protected store: Store<AppState>, |
|
|
private translate: TranslateService, |
|
|
private translate: TranslateService, |
|
|
|
|
|
private cd: ChangeDetectorRef, |
|
|
private deviceService: DeviceService) { |
|
|
private deviceService: DeviceService) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -63,6 +64,7 @@ export class DeviceGatewayCommandComponent implements OnInit { |
|
|
this.deviceService.getDeviceCredentials(this.deviceId).subscribe(credentials => { |
|
|
this.deviceService.getDeviceCredentials(this.deviceId).subscribe(credentials => { |
|
|
this.token = credentials.credentialsId; |
|
|
this.token = credentials.credentialsId; |
|
|
this.createRunCode(HOST); |
|
|
this.createRunCode(HOST); |
|
|
|
|
|
this.cd.detectChanges() |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
this.selectedOSCControl = new FormControl(''); |
|
|
this.selectedOSCControl = new FormControl(''); |
|
|
|