Skip to content

Commit

Permalink
fix(NcRichText): Allow to pass interactive widget toggle
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr authored and Antreesy committed Mar 8, 2024
1 parent 2014770 commit c7ce104
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/components/NcRichText/NcRichText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
])
Expand Down Expand Up @@ -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,
])
Expand Down

0 comments on commit c7ce104

Please sign in to comment.