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
+9 -1
View File
@@ -3,6 +3,14 @@ import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'ul',
classNames: ['proposal-list']
classNames: ['proposal-list'],
actions: {
confirm(proposalId) {
this.sendAction('confirmAction', proposalId);
}
}
});
+1 -1
View File
@@ -6,6 +6,6 @@
to <span class="recipient" title="{{proposal.recipientAddress}}">{{proposal.recipientName}}</span>
<span class="votes">({{proposal.votesCount}}/{{proposal.votesNeeded}} votes)</span>
<button {{action "confirm"}}>+1</button>
{{#unless proposal.executed}}<button {{action "confirm" proposal.id}}>+1</button>{{/unless}}
</li>
{{/each}}