1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-29 22:48:10 +02:00

Various improvements

This commit is contained in:
Laurent Cozic
2017-08-21 22:46:31 +02:00
parent 1da06734f1
commit 67b812cab0
8 changed files with 155 additions and 25 deletions

View File

@@ -196,7 +196,11 @@ class NoteScreenComponent extends BaseScreenComponent {
}
let isNew = !note.id;
if (!note.title) note.title = _('Untitled');
if (isNew && !note.title) {
note.title = Note.defaultTitle(note);
}
note = await Note.save(note);
this.setState({
lastSavedNote: Object.assign({}, note),