Reverse notes ordering, make scrollable (#32)

This commit is contained in:
Daniel J. Summers 2019-10-14 10:50:50 -05:00
parent 715df08cbe
commit 6a6f7b35c7
3 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>
<Version>2.1.0.0</Version>
<Version>2.1.1.0</Version>
</PropertyGroup>
<ItemGroup>

View File

@ -1,6 +1,6 @@
{
"name": "my-prayer-journal",
"version": "2.1.0",
"version": "2.1.1",
"description": "myPrayerJournal - Front End",
"author": "Daniel J. Summers <daniel@bitbadger.solutions>",
"private": true,

View File

@ -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)