mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	merge
This commit is contained in:
		
							parent
							
								
									93addac8bb
								
							
						
					
					
						commit
						49241ab318
					
				| @ -53,9 +53,6 @@ async function getRenderedContent(entity, options = {}) { | |||||||
|     else if (type === 'canvas') { |     else if (type === 'canvas') { | ||||||
|         await renderCanvas(entity, $renderedContent); |         await renderCanvas(entity, $renderedContent); | ||||||
|     } |     } | ||||||
|     else if (type === 'book') { |  | ||||||
|         // nothing, a book doesn't have its own content
 |  | ||||||
|     } |  | ||||||
|     else if (!options.tooltip && type === 'protectedSession') { |     else if (!options.tooltip && type === 'protectedSession') { | ||||||
|         const $button = $(`<button class="btn btn-sm"><span class="bx bx-log-in"></span> Enter protected session</button>`) |         const $button = $(`<button class="btn btn-sm"><span class="bx bx-log-in"></span> Enter protected session</button>`) | ||||||
|             .on('click', protectedSessionService.enterProtectedSession); |             .on('click', protectedSessionService.enterProtectedSession); | ||||||
| @ -67,8 +64,13 @@ async function getRenderedContent(entity, options = {}) { | |||||||
|                 .append($button) |                 .append($button) | ||||||
|         ); |         ); | ||||||
|     } |     } | ||||||
|     else { |     else if (entity instanceof FNote) { | ||||||
|         $renderedContent.append($("<p><em>Content of this note cannot be displayed</em></p>")); |         $renderedContent.append( | ||||||
|  |             $("<div>") | ||||||
|  |                 .css("text-align", "center") | ||||||
|  |                 .css("font-size", "500%") | ||||||
|  |                 .append($("<span>").addClass(entity.getIcon())) | ||||||
|  |         ); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if (entity instanceof FNote) { |     if (entity instanceof FNote) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam