Skip to content

Commit

Permalink
clarify input sync with input forms
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
julien-nc committed Feb 9, 2024
1 parent ca2f310 commit 9ae92f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/components/AssistantFormInputs.vue
Original file line number Diff line number Diff line change
Expand Up @@ -203,27 +203,27 @@ export default {
}
},
onUpdate() {
this.$emit('update:newInputs', {
this.$emit('update:inputs', {
prompt: this.prompt,
})
},
onUpdateCopywriter() {
this.$emit('update:newInputs', {
this.$emit('update:inputs', {
writingStyle: this.writingStyle,
sourceMaterial: this.sourceMaterial,
})
},
onUpdateStt() {
this.$emit(
'update:newInputs',
'update:inputs',
this.sttMode === 'record'
? { audioData: this.sttAudioData }
: { audioFilePath: this.sttAudioFilePath },
)
},
onUpdateTti() {
this.$emit(
'update:newInputs',
'update:inputs',
{
prompt: this.prompt,
nResults: this.ttiNResults,
Expand Down
5 changes: 2 additions & 3 deletions src/components/AssistantTextProcessingForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@
{{ selectedTaskType.description }}
</span>
<AssistantFormInputs
:inputs="inputs"
:selected-task-type-id="mySelectedTaskTypeId"
:new-inputs.sync="myInputs" />
:inputs.sync="myInputs"
:selected-task-type-id="mySelectedTaskTypeId" />
<div v-if="myOutput !== null"
class="output">
<label
Expand Down

0 comments on commit 9ae92f7

Please sign in to comment.