change wake word model to use new field names
parent
11a4af13c4
commit
01a1233b0f
|
@ -8,7 +8,7 @@
|
|||
</account-display-field>
|
||||
<account-display-field
|
||||
[label]="'Wake Word'"
|
||||
[value]="device.wakeWord.displayName"
|
||||
[value]="device.wakeWord.name"
|
||||
>
|
||||
</account-display-field>
|
||||
<account-display-field
|
||||
|
|
|
@ -116,7 +116,7 @@ export class AddComponent implements OnInit {
|
|||
placement: [null],
|
||||
region: [this.defaults ? this.defaults.region.name : null, Validators.required],
|
||||
timezone: [this.defaults ? this.defaults.timezone.name : null, Validators.required],
|
||||
wakeWord: [this.defaults ? this.defaults.wakeWord.displayName : null, Validators.required],
|
||||
wakeWord: [this.defaults ? this.defaults.wakeWord.name : null, Validators.required],
|
||||
voice: [this.defaults ? this.defaults.voice.displayName : null, Validators.required]
|
||||
}
|
||||
);
|
||||
|
|
|
@ -43,7 +43,7 @@ export class DefaultsComponent implements OnInit {
|
|||
country: [this.defaults ? this.defaults.country.name : null],
|
||||
region: [this.defaults ? this.defaults.region.name : null],
|
||||
timezone: [this.defaults ? this.defaults.timezone.name : null],
|
||||
wakeWord: [this.defaults ? this.defaults.wakeWord.displayName : null],
|
||||
wakeWord: [this.defaults ? this.defaults.wakeWord.name : null],
|
||||
voice: [this.defaults ? this.defaults.voice.displayName : null]
|
||||
}
|
||||
);
|
||||
|
|
|
@ -71,7 +71,7 @@ export class DeviceEditComponent implements OnInit {
|
|||
placement: [device.placement],
|
||||
region: [device.region.name, Validators.required],
|
||||
timezone: [device.timezone.name, Validators.required],
|
||||
wakeWord: [device.wakeWord.displayName, Validators.required],
|
||||
wakeWord: [device.wakeWord.name, Validators.required],
|
||||
voice: [device.voice.displayName, Validators.required]
|
||||
}
|
||||
);
|
||||
|
|
|
@ -18,6 +18,6 @@ and limitations under the License.
|
|||
|
||||
export interface WakeWord {
|
||||
id: string;
|
||||
displayName: string;
|
||||
settingName: string;
|
||||
engine: string;
|
||||
name: string;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue