Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/views/Proposal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@
<b>{{ $t('proposal.SUCCESS')}}</b><br />
{{ proposal.success }}
</p>
<p class="mb-3"><b>{{ $t('proposal.FUNDS_REQUEST')}}</b> {{ proposal.amount | currency }}</p>
<p class="mb-3"><b>{{ $t('proposal.FUNDS_REQUEST')}}</b> {{ proposal.amount | currency }} <br>
<small><em><b>Challenge funds:</b> {{ challengeAmount | currency }} </em></small><br>
<small><em><b>Total funds:</b> {{ totalAmount | currency }} </em></small></p>
<!-- <p class="mb-3"><small><em><b>Challenge funds</b> {{ challengeAmount | currency }} </em></small></p>
<p class="mb-3"><small><em><b>Total funds</b> {{ totalAmount | currency }} </em></small></p> -->
<p class="mb-3" v-if="proposal.catalystId"><b>{{ $t('pickList.PROPOSAL_CATALYST_ID') }}:</b> {{ proposal.catalystId }}</p>
<div class="my-progress">
<b-progress :value="percentOfChallenge" size="is-medium" show-value>
Expand Down Expand Up @@ -243,6 +247,12 @@ export default {
}
return false
},
challengeAmount() {
return this.challenge.amount
},
totalAmount() {
return this.challenges.map( (ch) => ch.amount ).reduce((partialSum, a) => partialSum + a, 0)
},
assessmentsByQuestion() {
if (this.proposal) {
if (this.proposal.assessments) {
Expand Down