mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	chore(collections): rename Board to Kanban Board
This commit is contained in:
		| @@ -417,7 +417,7 @@ | ||||
|     "end-time": "End Time", | ||||
|     "geolocation": "Geolocation", | ||||
|     "built-in-templates": "Built-in templates", | ||||
|     "board": "Board", | ||||
|     "board": "Kanban Board", | ||||
|     "status": "Status", | ||||
|     "board_note_first": "First note", | ||||
|     "board_note_second": "Second note", | ||||
|   | ||||
| @@ -83,6 +83,21 @@ describe("Hidden Subtree", () => { | ||||
|             expect(updatedJumpToNote?.title).not.toBe("Renamed"); | ||||
|         }); | ||||
|  | ||||
|         it("enforces renames of templates", () => { | ||||
|             const boardTemplate = becca.getNote("_template_board"); | ||||
|             expect(boardTemplate).toBeDefined(); | ||||
|             boardTemplate!.title = "My renamed board"; | ||||
|  | ||||
|             cls.init(() => { | ||||
|                 boardTemplate!.save(); | ||||
|                 hiddenSubtreeService.checkHiddenSubtree(true); | ||||
|             }); | ||||
|  | ||||
|             const updatedBoardTemplate = becca.getNote("_template_board"); | ||||
|             expect(updatedBoardTemplate).toBeDefined(); | ||||
|             expect(updatedBoardTemplate?.title).not.toBe("My renamed board"); | ||||
|         }); | ||||
|  | ||||
|         it("maintains launchers hidden, if they were shown by default but moved by the user", () => { | ||||
|             const launcher = becca.getNote("_lbLlmChat"); | ||||
|             const branch = launcher?.getParentBranches()[0]; | ||||
|   | ||||
| @@ -422,7 +422,7 @@ function checkHiddenSubtreeRecursively(parentNoteId: string, item: HiddenSubtree | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     const shouldRestoreNames = extraOpts.restoreNames || note.noteId.startsWith("_help") || item.id.startsWith("_lb"); | ||||
|     const shouldRestoreNames = extraOpts.restoreNames || note.noteId.startsWith("_help") || item.id.startsWith("_lb") || item.id.startsWith("_template"); | ||||
|     if (shouldRestoreNames && note.title !== item.title) { | ||||
|         note.title = item.title; | ||||
|         note.save(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user