mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01:00 
			
		
		
		
	fix relation map
This commit is contained in:
		
							parent
							
								
									855b876d50
								
							
						
					
					
						commit
						9216e430db
					
				| @ -674,6 +674,16 @@ class Note extends AbstractEntity { | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |     getRelationDefinitions() { | ||||||
|  |         return this.getLabels() | ||||||
|  |             .filter(l => l.name.startsWith("relation:")); | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  |     getLabelDefinitions() { | ||||||
|  |         return this.getLabels() | ||||||
|  |             .filter(l => l.name.startsWith("relation:")); | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     isTemplate() { |     isTemplate() { | ||||||
|         return !!this.targetRelations.find(rel => rel.name === 'template'); |         return !!this.targetRelations.find(rel => rel.name === 'template'); | ||||||
|     } |     } | ||||||
|  | |||||||
| @ -75,7 +75,7 @@ const TPL = ` | |||||||
|     <button type="button" |     <button type="button" | ||||||
|             class="relation-map-reset-pan-zoom btn icon-button floating-button bx bx-crop no-print" |             class="relation-map-reset-pan-zoom btn icon-button floating-button bx bx-crop no-print" | ||||||
|             title="Reset pan & zoom to initial coordinates and magnification" |             title="Reset pan & zoom to initial coordinates and magnification" | ||||||
|             style="right: 70px;"></button> |             style="right: 100px;"></button> | ||||||
| 
 | 
 | ||||||
|     <div class="btn-group floating-button no-print" style="right: 10px;"> |     <div class="btn-group floating-button no-print" style="right: 10px;"> | ||||||
|         <button type="button" |         <button type="button" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam