From 1d229e9108baf1fe648d6a0366b40d350ca30792 Mon Sep 17 00:00:00 2001 From: Elizabeth Danzberger Date: Thu, 12 Dec 2024 15:22:50 -0500 Subject: [PATCH] fix: directly pass action buttons (instead of in state) Signed-off-by: Elizabeth Danzberger --- src/mixins/assistant.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/mixins/assistant.js b/src/mixins/assistant.js index 85f1ea13f5..7077c817b4 100644 --- a/src/mixins/assistant.js +++ b/src/mixins/assistant.js @@ -14,13 +14,6 @@ export default { data() { return { task: null, - buttons: [ - { - label: t('richdocuments', 'Insert into document'), - title: t('richdocuments', 'Insert into document'), - onClick: () => this.handleTask(this.task), - }, - ], } }, methods: { @@ -29,7 +22,13 @@ export default { appId: 'richdocuments', customId: 'richdocuments:' + this.fileid, isInsideViewer: true, - actionButtons: this.buttons, + actionButtons: [ + { + label: t('richdocuments', 'Insert into document'), + title: t('richdocuments', 'Insert into document'), + onClick: () => this.handleTask(this.task), + }, + ], }) }, handleTask(task) {