Skip to content

Build your personal knowledge base with Trilium Notes

chore(react/collections/board): start with no name for new notes

Elian Doranb361cc063008
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index 634fe3c351..c084cf7ec5 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -2006,6 +2006,7 @@
"delete-column": "Delete column",
"delete-column-confirmation": "Are you sure you want to delete this column? The corresponding attribute will be deleted in the notes under this column as well.",
"new-item": "New item",
+ "new-item-placeholder": "Enter note title...",
"add-column": "Add Column",
"add-column-placeholder": "Enter column name...",
"edit-note-title": "Click to edit note title",
diff --git a/apps/client/src/widgets/collections/board/column.tsx b/apps/client/src/widgets/collections/board/column.tsx
index 269a612601..88fec26aaf 100644
--- a/apps/client/src/widgets/collections/board/column.tsx
+++ b/apps/client/src/widgets/collections/board/column.tsx
@@ -140,7 +140,7 @@ function AddNewItem({ column, api }: { column: string, api: BoardApi }) {
</>
) : (
<TitleEditor
- currentValue={t("board_view.new-item")}
+ placeholder={t("board_view.new-item-placeholder")}
save={(title) => api.createNewItem(column, title)}
dismiss={() => setIsCreatingNewItem(false)}
multiline isNewItem