mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	client: Enable copy image reference button for mindmaps
This commit is contained in:
		
							parent
							
								
									5c2446be67
								
							
						
					
					
						commit
						64b4aba6ba
					
				@ -15,7 +15,7 @@ const TPL = `
 | 
			
		||||
export default class CopyImageReferenceButton extends NoteContextAwareWidget {
 | 
			
		||||
    isEnabled() {
 | 
			
		||||
        return super.isEnabled()
 | 
			
		||||
            && ['mermaid', 'canvas'].includes(this.note?.type)
 | 
			
		||||
            && ['mermaid', 'canvas', 'mindMap'].includes(this.note?.type)
 | 
			
		||||
            && this.note.isContentAvailable()
 | 
			
		||||
            && this.noteContext?.viewScope.viewMode === 'default';
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user