From 15d5ca4b39f882a85ad16546851bf9731999092c Mon Sep 17 00:00:00 2001 From: Chris Veilleux Date: Fri, 22 Mar 2019 00:27:02 -0500 Subject: [PATCH] updated voice and wake word models to contain what is sent from the server --- .../app/modules/device/device-edit/device-edit.component.ts | 2 +- projects/account/src/app/shared/models/voice.model.ts | 1 + projects/account/src/app/shared/models/wake-word.model.ts | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/projects/account/src/app/modules/device/device-edit/device-edit.component.ts b/projects/account/src/app/modules/device/device-edit/device-edit.component.ts index fc16525..afde2ec 100644 --- a/projects/account/src/app/modules/device/device-edit/device-edit.component.ts +++ b/projects/account/src/app/modules/device/device-edit/device-edit.component.ts @@ -93,7 +93,7 @@ export class DeviceEditComponent implements OnInit { } if (this.defaults.wakeWord) { this.deviceForm.controls['wakeWord'].setValue( - this.defaults.wakeWord.wakeWord + this.defaults.wakeWord.displayName ); } } diff --git a/projects/account/src/app/shared/models/voice.model.ts b/projects/account/src/app/shared/models/voice.model.ts index d62433e..1ac26dc 100644 --- a/projects/account/src/app/shared/models/voice.model.ts +++ b/projects/account/src/app/shared/models/voice.model.ts @@ -1,4 +1,5 @@ export interface Voice { id: string; displayName: string; + settingName: string; } diff --git a/projects/account/src/app/shared/models/wake-word.model.ts b/projects/account/src/app/shared/models/wake-word.model.ts index ea93545..6ae7a94 100644 --- a/projects/account/src/app/shared/models/wake-word.model.ts +++ b/projects/account/src/app/shared/models/wake-word.model.ts @@ -1,4 +1,5 @@ export interface WakeWord { id: string; - wakeWord: string; + displayName: string; + settingName: string; }