Skip to content

Commit 5d66068

Browse files
committed
restrict the task type list when invoking the assistant from the picker
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent 25d6822 commit 5d66068

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/views/ImageResultCustomPickerElement.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default {
6464
inputs: this.inputs,
6565
appId: 'assistant',
6666
taskType: this.taskType,
67+
taskTypeIdList: [this.taskType],
6768
closeOnResult: false,
6869
actionButtons: [
6970
{

src/views/TextResultCustomPickerElement.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export default {
4949
OCA.Assistant.openAssistantForm({
5050
appId: 'assistant',
5151
taskType: this.taskType,
52+
taskTypeIdList: [this.taskType],
5253
closeOnResult: false,
5354
actionButtons: [
5455
{

0 commit comments

Comments
 (0)