From c7ce1045556e523a137e2ce471700257583d6234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 7 Mar 2024 16:50:27 +0100 Subject: [PATCH] fix(NcRichText): Allow to pass interactive widget toggle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/NcRichText/NcRichText.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/components/NcRichText/NcRichText.vue b/src/components/NcRichText/NcRichText.vue index 0dec564a19..e45895c6e6 100644 --- a/src/components/NcRichText/NcRichText.vue +++ b/src/components/NcRichText/NcRichText.vue @@ -325,6 +325,10 @@ export default { type: Number, default: 0, }, + referenceInteractive: { + type: Boolean, + default: true, + }, /** Provide data upfront to avoid extra http request */ references: { type: Object, @@ -401,7 +405,11 @@ export default { h('div', {}, placeholders.flat()), this.referenceLimit > 0 ? h('div', { class: 'rich-text--reference-widget' }, [ - h(NcReferenceList, { text: this.text, referenceData: this.references }), + h(NcReferenceList, { + text: this.text, + referenceData: this.references, + interactive: this.referenceInteractive, + }), ]) : null, ]) @@ -448,7 +456,11 @@ export default { renderedMarkdown, this.referenceLimit > 0 ? h('div', { class: 'rich-text--reference-widget' }, [ - h(NcReferenceList, { text: this.text, referenceData: this.references }), + h(NcReferenceList, { + text: this.text, + referenceData: this.references, + interactive: this.referenceInteractive, + }), ]) : null, ])