Merge pull request #113 from 67P/feature/98-veto_unconfirmed_contributions

Veto contributions
This commit was merged in pull request #113.
This commit is contained in:
2019-05-01 19:43:28 +01:00
committed by GitHub
13 changed files with 174 additions and 63 deletions
+5 -5
View File
@@ -35,15 +35,15 @@ export default Controller.extend({
actions: {
vetoContribution (/* contributionId */) {
// this.kredits.vote(proposalId).then(transaction => {
// window.confirm('Vote submitted to Ethereum blockhain: '+transaction.hash);
// });
vetoContribution (contributionId) {
this.kredits.veto(contributionId).then(transaction => {
console.debug('[controllers:index] Veto submitted to Ethereum blockhain: '+transaction.hash);
});
},
confirmProposal (proposalId) {
this.kredits.vote(proposalId).then(transaction => {
window.confirm('Vote submitted to Ethereum blockhain: '+transaction.hash);
console.debug('[controllers:index] Vote submitted to Ethereum blockhain: '+transaction.hash);
});
},