Submit reimbursements

This commit is contained in:
2020-10-01 12:48:01 +02:00
parent c1eb93c596
commit c7b6f9e3e7
5 changed files with 71 additions and 29 deletions
+3 -7
View File
@@ -1,12 +1,12 @@
import EmberObject, { computed } from '@ember/object';
import { isEmpty, isPresent } from '@ember/utils';
import { isPresent } from '@ember/utils';
import moment from 'moment';
export default EmberObject.extend({
// Contract
id: null,
contributorId: null,
recipientId: null,
token: null,
amount: null,
confirmedAt: null,
@@ -14,7 +14,7 @@ export default EmberObject.extend({
ipfsHash: null,
// contributor model instance
contributor: null,
recipient: null,
// TODO contributor who submitted the reimbursement
// recordedBy: null,
@@ -24,10 +24,6 @@ export default EmberObject.extend({
pendingTx: null,
init () {
this._super(...arguments);
},
iso8601Date: computed('date', 'time', function() {
return this.time ? `${this.date}T${this.time}` : this.date;
}),