From: Adam Dullage Date: Wed, 15 Jun 2022 12:15:19 +0000 (+0100) Subject: Added title placeholder X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=997ca3c9459226552d9a262f02cef8d6984a1a65;p=flatnotes.git Added title placeholder --- diff --git a/flatnotes/src/components/App.js b/flatnotes/src/components/App.js index e6a0312..160a651 100644 --- a/flatnotes/src/components/App.js +++ b/flatnotes/src/components/App.js @@ -186,7 +186,7 @@ export default { toggleEditMode: function() { // To Edit Mode if (this.editMode == false) { - this.titleInput = this.currentNote.title || "New Note"; + this.titleInput = this.currentNote.title; let draftContent = localStorage.getItem(this.currentNote.filename); // Draft if (draftContent && confirm("Do you want to resume the saved draft?")) { diff --git a/flatnotes/src/components/App.vue b/flatnotes/src/components/App.vue index 83edafa..4c7fb32 100644 --- a/flatnotes/src/components/App.vue +++ b/flatnotes/src/components/App.vue @@ -152,6 +152,7 @@ type="text" class="h2 title-input" v-model="titleInput" + placeholder="Title" />