Vote for proposals from the UI

This commit is contained in:
2017-02-05 17:31:36 +08:00
parent aaa1102563
commit 79412e2032
5 changed files with 33 additions and 5 deletions
+10 -1
View File
@@ -36,7 +36,16 @@ export default Ember.Controller.extend({
findContributorByAddress(address) {
return this.get('model.contributors')
.findBy('address', address);
},
actions: {
confirmProposal(proposalId) {
this.get('kredits').vote(proposalId).then(transactionId => {
window.confirm('Vote submitted to Ethereum blockhain: '+transactionId);
});
}
}
});