Added title placeholder
authorAdam Dullage <redacted>
Wed, 15 Jun 2022 12:15:19 +0000 (13:15 +0100)
committerAdam Dullage <redacted>
Wed, 15 Jun 2022 12:15:19 +0000 (13:15 +0100)
flatnotes/src/components/App.js
flatnotes/src/components/App.vue

index e6a0312cf9022763b98e04fd5cc330e3f144ac75..160a651dce9d8b32a28d9eba2db76823e6b70252 100644 (file)
@@ -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?")) {
index 83edafadb7374fcec04b5b339c7fd304f528c516..4c7fb32f36c68beedab7acb941c91574e0247f6a 100644 (file)
             type="text"
             class="h2 title-input"
             v-model="titleInput"
+            placeholder="Title"
           />
 
           <!-- Viewer -->
git clone https://git.99rst.org/PROJECT