mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	refactor(canvas): use better approach to disabling export
This commit is contained in:
		
							parent
							
								
									3c146cdb20
								
							
						
					
					
						commit
						abddde910c
					
				| @ -26,11 +26,6 @@ const TPL = ` | |||||||
| 
 | 
 | ||||||
|         .excalidraw-wrapper { |         .excalidraw-wrapper { | ||||||
|             height: 100%; |             height: 100%; | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         .excalidraw button[data-testid="json-export-button"] { |  | ||||||
|             display: none !important; |  | ||||||
|         } |  | ||||||
| 
 | 
 | ||||||
|         :root[dir="ltr"] |         :root[dir="ltr"] | ||||||
|         .excalidraw |         .excalidraw | ||||||
| @ -44,10 +39,6 @@ const TPL = ` | |||||||
|             display: none !important; |             display: none !important; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         button[data-testid='save-button'], button[data-testid='json-export-button'] { |  | ||||||
|             display: none !important; /* these exports don't work, user should use import/export dialog */ |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         .library-button { |         .library-button { | ||||||
|             display: none !important; /* library won't work without extra support which isn't currently implemented */ |             display: none !important; /* library won't work without extra support which isn't currently implemented */ | ||||||
|         } |         } | ||||||
| @ -558,7 +549,8 @@ export default class ExcalidrawTypeWidget extends TypeWidget { | |||||||
|                     onLinkOpen, |                     onLinkOpen, | ||||||
|                     UIOptions: { |                     UIOptions: { | ||||||
|                         canvasActions: { |                         canvasActions: { | ||||||
|                             saveToActiveFile: false |                             saveToActiveFile: false, | ||||||
|  |                             export: false | ||||||
|                         } |                         } | ||||||
|                     } |                     } | ||||||
|                 }) |                 }) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran