Handle pending changes for contributions
This adds the pending tx data to pending contributions (after adding or vetoing, until the tx is mined). It also disables the veto button while pending.
This commit is contained in:
@@ -24,4 +24,13 @@ module('Unit | Model | contribution', function(hooks) {
|
||||
assert.ok(model.jsDate instanceof Date);
|
||||
assert.equal(model.jsDate.toISOString(), '2019-09-10T09:33:00.141Z');
|
||||
});
|
||||
|
||||
test('hasPendingChanges', function(assert) {
|
||||
const model = Contribution.create({});
|
||||
assert.equal(model.hasPendingChanges, false);
|
||||
|
||||
model.set('pendingTx', { hash: 'abcdef123456' });
|
||||
assert.equal(model.hasPendingChanges, true);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user