generated from tpl/obsidian-sample-plugin
			Open book in current leaf in bookshelf view instead of new leaf
This commit is contained in:
		
							parent
							
								
									7e5135d99e
								
							
						
					
					
						commit
						c603475f69
					
				| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
{
 | 
			
		||||
	"name": "obsidian-sample-plugin",
 | 
			
		||||
	"name": "obsidian-book-tracker",
 | 
			
		||||
	"version": "1.0.0",
 | 
			
		||||
	"description": "Simplifies tracking your reading progress and managing your book collection in Obsidian.",
 | 
			
		||||
	"main": "main.js",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -142,7 +142,7 @@
 | 
			
		|||
						orientation="flat"
 | 
			
		||||
						onClick={() =>
 | 
			
		||||
							plugin.app.workspace
 | 
			
		||||
								.getLeaf("tab")
 | 
			
		||||
								.getLeaf(false)
 | 
			
		||||
								.openFile(bookData.file)}
 | 
			
		||||
					/>
 | 
			
		||||
				{/each}
 | 
			
		||||
| 
						 | 
				
			
			@ -157,7 +157,7 @@
 | 
			
		|||
				design={book.design}
 | 
			
		||||
				orientation={book.orientation}
 | 
			
		||||
				onClick={() =>
 | 
			
		||||
					plugin.app.workspace.getLeaf("tab").openFile(book.file)}
 | 
			
		||||
					plugin.app.workspace.getLeaf(false).openFile(book.file)}
 | 
			
		||||
			/>
 | 
			
		||||
		{/if}
 | 
			
		||||
	{/each}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue