Finish reimbursement loading and sync

This commit is contained in:
2020-10-30 15:04:24 +01:00
parent ec50e7deef
commit 7b1c3c813c
5 changed files with 61 additions and 40 deletions
+6 -1
View File
@@ -1,6 +1,7 @@
import EmberObject, { computed } from '@ember/object';
import { isPresent } from '@ember/utils';
import moment from 'moment';
import { notEmpty } from '@ember/object/computed';
import { isPresent } from '@ember/utils';
export default EmberObject.extend({
@@ -36,6 +37,10 @@ export default EmberObject.extend({
return isPresent(this.pendingTx);
}),
pendingStatus: computed('pendingTx', function() {
return isPresent(this.pendingTx) ? 'isPending' : 'notPending';
}),
serialize () {
return JSON.stringify(this);
}