feat(views/board): add preset notes

This commit is contained in:
Elian Doran 2025-07-20 10:36:36 +03:00
parent af797489e8
commit b7b0b39afc
No known key found for this signature in database
2 changed files with 39 additions and 1 deletions

View File

@ -319,6 +319,12 @@
"geolocation": "Geolocation",
"built-in-templates": "Built-in templates",
"board": "Board",
"status": "Status"
"status": "Status",
"board_note_first": "First note",
"board_note_second": "Second note",
"board_note_third": "Third note",
"board_status_todo": "To Do",
"board_status_progress": "In Progress",
"board_status_done": "Done"
}
}

View File

@ -196,6 +196,38 @@ export default function buildHiddenSubtreeTemplates() {
value: `promoted,alias=${t("hidden_subtree_templates.status")},single,text`,
isInheritable: true
}
],
children: [
{
id: "_template_board_first",
title: t("hidden_subtree_templates.board_note_first"),
attributes: [{
name: "status",
value: t("hidden_subtree_templates.board_status_todo"),
type: "label"
}],
type: "text"
},
{
id: "_template_board_second",
title: t("hidden_subtree_templates.board_note_second"),
attributes: [{
name: "status",
value: t("hidden_subtree_templates.board_status_progress"),
type: "label"
}],
type: "text"
},
{
id: "_template_board_third",
title: t("hidden_subtree_templates.board_note_third"),
attributes: [{
name: "status",
value: t("hidden_subtree_templates.board_status_done"),
type: "label"
}],
type: "text"
}
]
},
]