From 6a6f7b35c70e42d254bfdff3d4a0f8c33a2ed21a Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Mon, 14 Oct 2019 10:50:50 -0500 Subject: [PATCH] Reverse notes ordering, make scrollable (#32) --- src/MyPrayerJournal.Api/MyPrayerJournal.Api.fsproj | 2 +- src/app/package.json | 2 +- src/app/src/components/request/NotesEdit.vue | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MyPrayerJournal.Api/MyPrayerJournal.Api.fsproj b/src/MyPrayerJournal.Api/MyPrayerJournal.Api.fsproj index 40bf8f3..e786b50 100644 --- a/src/MyPrayerJournal.Api/MyPrayerJournal.Api.fsproj +++ b/src/MyPrayerJournal.Api/MyPrayerJournal.Api.fsproj @@ -2,7 +2,7 @@ netcoreapp3.0 - 2.1.0.0 + 2.1.1.0 diff --git a/src/app/package.json b/src/app/package.json index b2eb6f4..cf9ab08 100644 --- a/src/app/package.json +++ b/src/app/package.json @@ -1,6 +1,6 @@ { "name": "my-prayer-journal", - "version": "2.1.0", + "version": "2.1.1", "description": "myPrayerJournal - Front End", "author": "Daniel J. Summers ", "private": true, diff --git a/src/app/src/components/request/NotesEdit.vue b/src/app/src/components/request/NotesEdit.vue index 6f964bf..d458dec 100644 --- a/src/app/src/components/request/NotesEdit.vue +++ b/src/app/src/components/request/NotesEdit.vue @@ -10,7 +10,7 @@ md-dialog(:md-active.sync='notesVisible').mpj-note-dialog md-dialog-actions md-button(@click='saveNotes()').md-primary #[md-icon save] Save md-button(@click='closeDialog()') #[md-icon undo] Cancel - .mpj-dialog-content + md-dialog-content(md-scrollbar='true').mpj-dialog-content div(v-if='hasPriorNotes') p.mpj-text-center: strong Prior Notes for This Request .mpj-note-list @@ -71,7 +71,7 @@ export default { this.progress.$emit('show', 'indeterminate') try { const notes = await api.getNotes(this.form.requestId) - this.priorNotes = notes.data + this.priorNotes = notes.data.sort((a, b) => b.asOf - a.asOf) this.progress.$emit('done') } catch (e) { console.error(e)