when adding first device, if user sets any of the default values, ensure those are propagated to the pairing step.
parent
eaeb562f72
commit
404e62f9e7
|
@ -155,6 +155,16 @@ export class AddComponent implements OnInit {
|
|||
|
||||
onDefaultsSubmit() {
|
||||
this.deviceService.addAccountDefaults(this.defaultsForm).subscribe();
|
||||
this.deviceForm.patchValue(
|
||||
{
|
||||
city: this.defaultsForm.controls['city'].value,
|
||||
country: this.defaultsForm.controls['country'].value,
|
||||
region: this.defaultsForm.controls['region'].value,
|
||||
timezone: this.defaultsForm.controls['timezone'].value,
|
||||
wakeWord: this.defaultsForm.controls['wakeWord'].value,
|
||||
voice: this.defaultsForm.controls['voice'].value
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
onFinished() {
|
||||
|
|
Loading…
Reference in New Issue