when adding first device, if user sets any of the default values, ensure those are propagated to the pairing step.

pull/85/head
Chris Veilleux 2022-07-26 14:14:53 -05:00
parent eaeb562f72
commit 404e62f9e7
1 changed files with 10 additions and 0 deletions

View File

@ -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() {