Files
kredits-web/app/components/proposal-list/component.js
T
2018-04-16 18:11:52 +02:00

21 lines
402 B
JavaScript

import Component from '@ember/component';
export default Component.extend({
tagName: 'ul',
classNames: ['proposal-list'],
actions: {
confirm(proposalId) {
if (this.contractInteractionEnabled) {
this.sendAction('confirmAction', proposalId);
} else {
window.alert('Only members can vote on proposals. Please ask someone to set you up.');
}
}
}
});