Add Fix Vote issue and improve UI

This commit is contained in:
liangping 2021-09-14 10:54:43 +08:00
parent 5dfd2da376
commit 74c7d29875
3 changed files with 5 additions and 3 deletions

View File

@ -97,11 +97,13 @@
variant="success"
:value="p.tally.yes"
show-progress
:label="`${p.tally.yes.toFixed()}%`"
/>
<b-progress-bar
:id="'vote-no'+p.id"
variant="warning"
:value="p.tally.no"
:label="`${p.tally.no.toFixed()}%`"
show-progress
/>
<b-progress-bar

View File

@ -224,7 +224,7 @@
</b-button>
</router-link>
<b-button
:disabled="proposer.status!=2"
:disabled="proposal.status!=2"
variant="primary"
class="btn float-right mg-2"
>
@ -295,7 +295,7 @@ export default {
case 'VOTE_OPTION_NO':
return 'No'
case 4:
// case 'VOTE_OPTION_NO_WITH':
case 'VOTE_OPTION_NO_WITH_VETO':
return 'No With Veto'
default:
return value

View File

@ -365,7 +365,7 @@ export default {
value: {
voter: this.voter,
proposalId: this.proposalId,
option: this.option,
option: Number(this.option),
},
}]