Allow addons to customize pending proposals
This commit is contained in:
parent
56e91029da
commit
6e37cb3017
2 changed files with 9 additions and 0 deletions
|
|
@ -488,6 +488,7 @@ angular.module('copayApp.controllers').controller('indexController', function($r
|
||||||
if (tx.creatorId != self.copayerId) {
|
if (tx.creatorId != self.copayerId) {
|
||||||
self.pendingTxProposalsCountForUs = self.pendingTxProposalsCountForUs + 1;
|
self.pendingTxProposalsCountForUs = self.pendingTxProposalsCountForUs + 1;
|
||||||
}
|
}
|
||||||
|
addonManager.formatPendingTxp(tx);
|
||||||
});
|
});
|
||||||
self.txps = txps;
|
self.txps = txps;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -19,4 +19,12 @@ angular.module('copayApp.services').service('addonManager', function (lodash) {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.formatPendingTxp = function (txp) {
|
||||||
|
lodash.each(addons, function (addon) {
|
||||||
|
if (addon.formatPendingTxp) {
|
||||||
|
addon.formatPendingTxp(txp);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue