mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 11:26:15 +01:00
chore(collections): rename Board to Kanban Board
This commit is contained in:
@@ -417,7 +417,7 @@
|
|||||||
"end-time": "End Time",
|
"end-time": "End Time",
|
||||||
"geolocation": "Geolocation",
|
"geolocation": "Geolocation",
|
||||||
"built-in-templates": "Built-in templates",
|
"built-in-templates": "Built-in templates",
|
||||||
"board": "Board",
|
"board": "Kanban Board",
|
||||||
"status": "Status",
|
"status": "Status",
|
||||||
"board_note_first": "First note",
|
"board_note_first": "First note",
|
||||||
"board_note_second": "Second note",
|
"board_note_second": "Second note",
|
||||||
|
|||||||
@@ -83,6 +83,21 @@ describe("Hidden Subtree", () => {
|
|||||||
expect(updatedJumpToNote?.title).not.toBe("Renamed");
|
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", () => {
|
it("maintains launchers hidden, if they were shown by default but moved by the user", () => {
|
||||||
const launcher = becca.getNote("_lbLlmChat");
|
const launcher = becca.getNote("_lbLlmChat");
|
||||||
const branch = launcher?.getParentBranches()[0];
|
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) {
|
if (shouldRestoreNames && note.title !== item.title) {
|
||||||
note.title = item.title;
|
note.title = item.title;
|
||||||
note.save();
|
note.save();
|
||||||
|
|||||||
Reference in New Issue
Block a user