Browse Source

fix sort order of items on contact given-amounts page

kb/add-usage-guide
Trent Larson 2 years ago
parent
commit
eadcc22e9a
  1. 1
      project.yaml
  2. 3
      src/views/ContactAmountsView.vue

1
project.yaml

@ -33,6 +33,7 @@
- 01 Change alerts into a component (to cut down duplicate code) - 01 Change alerts into a component (to cut down duplicate code)
- 01 Code for "nav" tabs across the bottom is duplicated on each page. - 01 Code for "nav" tabs across the bottom is duplicated on each page.
- .2 Add "copied" feedback when they click "copy" on /account - .2 Add "copied" feedback when they click "copy" on /account
- .5 Fix how icons show on top of bottom bar on ContactAmounts page
- commit screen - commit screen

3
src/views/ContactAmountsView.vue

@ -203,7 +203,8 @@ export default class ContactsView extends Vue {
} }
const sortedResult: Array<GiveServerRecord> = R.sort( const sortedResult: Array<GiveServerRecord> = R.sort(
(a, b) => new Date(a).getTime() - new Date(b).getTime(), (a, b) =>
new Date(b.issuedAt).getTime() - new Date(a.issuedAt).getTime(),
result result
); );
this.giveRecords = sortedResult; this.giveRecords = sortedResult;

Loading…
Cancel
Save