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
@@ -8,7 +8,11 @@ export default Ember.Component.extend({
actions: {
confirm(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.');
}
}
}
+11 -10
View File
@@ -13,28 +13,30 @@
</div>
</section>
{{#if contractInteractionEnabled}}
{{#if proposalsOpen}}
{{#if proposalsOpen}}
<section id="proposals-open">
<header>
<h2>Open Proposals</h2>
</header>
<div class="content">
{{proposal-list proposals=proposalsOpenSorted confirmAction="confirmProposal"}}
{{proposal-list proposals=proposalsOpenSorted
confirmAction="confirmProposal"
contractInteractionEnabled=contractInteractionEnabled}}
</div>
</section>
{{/if}}
{{/if}}
<section id="proposals-closed">
<section id="proposals-closed">
<header>
<h2>Closed Proposals</h2>
</header>
<div class="content">
{{proposal-list proposals=proposalsClosedSorted confirmAction="confirmProposal"}}
{{proposal-list proposals=proposalsClosedSorted
confirmAction="confirmProposal"}}
</div>
</section>
</section>
<section id="add-contributor">
<section id="add-contributor">
<header>
<h2>Add Contributor</h2>
</header>
@@ -42,5 +44,4 @@
<div class="content">
{{add-contributor kredits=kredits}}
</div>
</section>
{{/if}}
</section>