21 lines
402 B
JavaScript
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.');
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
});
|