Merge pull request #85 from MycroftAI/feature/propagate-defaults

propagate default values when adding first device
pull/84/head^2
Chris Veilleux 2022-07-29 11:43:56 -05:00 committed by GitHub
commit 60aae2dc3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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() {