Show proposals to everyone, with warning for non-members

This commit is contained in:
2017-02-08 13:22:19 +08:00
parent 7a072f2586
commit 1de2e002bb
2 changed files with 31 additions and 26 deletions
+5 -1
View File
@@ -8,7 +8,11 @@ export default Ember.Component.extend({
actions: {
confirm(proposalId) {
this.sendAction('confirmAction', proposalId);
if (this.get('contractInteractionEnabled')) {
this.sendAction('confirmAction', proposalId);
} else {
window.alert('Only members can vote on proposals. Please ask someone to set you up.');
}
}
}