client: Enable copy image reference button for mindmaps

This commit is contained in:
Elian Doran 2024-09-01 22:56:45 +03:00
parent 5c2446be67
commit 64b4aba6ba
No known key found for this signature in database

View File

@ -15,7 +15,7 @@ const TPL = `
export default class CopyImageReferenceButton extends NoteContextAwareWidget { export default class CopyImageReferenceButton extends NoteContextAwareWidget {
isEnabled() { isEnabled() {
return super.isEnabled() return super.isEnabled()
&& ['mermaid', 'canvas'].includes(this.note?.type) && ['mermaid', 'canvas', 'mindMap'].includes(this.note?.type)
&& this.note.isContentAvailable() && this.note.isContentAvailable()
&& this.noteContext?.viewScope.viewMode === 'default'; && this.noteContext?.viewScope.viewMode === 'default';
} }