Update GovernanceProposalView.vue

This commit is contained in:
Erialos 2022-11-30 16:43:52 -07:00
parent f0fa01d703
commit 096400cb67

View File

@ -12,7 +12,7 @@
variant="light-info"
class="text-right"
>
Deposit
{{$t('governance-proposal.proposal_status_deposit')}}
</b-badge>
<b-badge
v-if="proposal.status == 2"
@ -20,7 +20,7 @@
variant="light-primary"
class="text-right"
>
Voting
{{$t('governance-proposal.proposal_status_voting')}}
</b-badge>
<b-badge
v-if="proposal.status == 3"
@ -28,7 +28,7 @@
variant="light-success"
class="text-right"
>
Passed
{{$t('governance-proposal.proposal_status_passed')}}
</b-badge>
<b-badge
v-if="proposal.status == 4"
@ -36,7 +36,7 @@
variant="light-danger"
class="text-right"
>
Rejected
{{$t('governance-proposal.proposal_status_rejected')}}
</b-badge>
{{ proposal.title }}
</b-card-title>
@ -55,17 +55,17 @@
<tbody>
<b-tr>
<b-td style="text-transform: capitalize; vertical-align: top; width:200px">
{{ $t('proposal_total_deposit') }}
{{ $t('governance-proposal.proposal_total_deposit') }}
</b-td><b-td>{{ formatToken(proposal.total_deposit) }} </b-td>
</b-tr>
<b-tr>
<b-td>
{{ $t('proposal_submit_time') }}
{{ $t('governance-proposal.proposal_submit_time') }}
</b-td><b-td>{{ formatDate(proposal.submit_time) }}</b-td>
</b-tr>
<b-tr>
<b-td>
{{ $t('voting_time') }}
{{ $t('governance-proposal.voting_time') }}
</b-td><b-td>{{ formatDate(proposal.voting_start_time) }} - {{ formatDate(proposal.voting_end_time) }}</b-td>
</b-tr>
<b-tr v-if="proposal.metadata">
@ -78,7 +78,7 @@
<b-table-simple v-if="proposal.type.indexOf('SoftwareUpgrade') > 0">
<b-tr>
<b-td class="text-center">
{{ $t('upgrade_time') }} {{ upgradeTime }}
{{ $t('governance-proposal.upgrade_time') }} {{ upgradeTime }}
<flip-countdown :deadline="upgradeTime" />
<b-input-group prepend="Estimated by block time: ">
<b-form-select v-model="blocktime">
@ -104,7 +104,7 @@
<b-button
variant="outline-primary"
>
{{ $t('btn_back_list') }}
{{ $t('governance-proposal.btn_back_list') }}
</b-button>
</router-link>
<b-button
@ -114,14 +114,14 @@
class="btn float-right mg-2"
@click="openModal('Vote')"
>
{{ $t('btn_vote') }}
{{ $t('governance-proposal.btn_vote') }}
</b-button>
</b-card-footer>
</b-card>
<b-card no-body>
<b-card-header>
<b-card-title>
Votes
{{ $t('governance-proposal.proposal_votes') }}
</b-card-title>
</b-card-header>
<b-card-body>
@ -166,22 +166,22 @@
<b-tooltip
:target="'vote-yes'+proposal.id"
>
{{ percent(proposal.tally.yes) }}% voted Yes
{{ percent(proposal.tally.yes) }}% {{ $t('governance-proposal.proposal_votes_yes') }}
</b-tooltip>
<b-tooltip
:target="'vote-no'+proposal.id"
>
{{ percent(proposal.tally.no) }}% voted No
{{ percent(proposal.tally.no) }}% {{ $t('governance-proposal.proposal_votes_no') }}
</b-tooltip>
<b-tooltip
:target="'vote-veto'+proposal.id"
>
{{ percent(proposal.tally.veto) }}% voted No With Veto
{{ percent(proposal.tally.veto) }}% voted {{ $t('governance-proposal.proposal_votes_nwv') }}
</b-tooltip>
<b-tooltip
:target="'vote-abstain'+proposal.id"
>
{{ percent(proposal.tally.abstain) }}% voted Abstain
{{ percent(proposal.tally.abstain) }}% {{ $t('governance-proposal.proposal_votes_abstain') }}
</b-tooltip>
<div
@ -211,7 +211,7 @@
@click="loadVotes()"
>
<feather-icon icon="PlusIcon" />
Load More Votes
{{ $t('governance-proposal.proposal_votes_load') }}
</div>
</div></b-card-body>
</b-card>
@ -221,7 +221,7 @@
>
<b-card-header>
<b-card-title>
Deposits ({{ formatToken(proposal.total_deposit) }})
{{ $t('governance-proposal.proposal_deposits') }} ({{ formatToken(proposal.total_deposit) }})
</b-card-title>
</b-card-header>
<b-card-body>
@ -244,7 +244,7 @@
<b-button
variant="outline-primary"
>
{{ $t('btn_back_list') }}
{{ $t('governance-proposal.btn_back_list') }}
</b-button>
</router-link>
<b-button
@ -254,7 +254,7 @@
class="btn float-right mg-2"
@click="openModal('GovDeposit')"
>
{{ $t('btn_deposit') }}
{{ $t('governance-proposal.btn_deposit') }}
</b-button>
<b-button
v-b-modal.operation-modal
@ -263,7 +263,7 @@
class="btn float-right mg-2 mr-1"
@click="openModal('Vote')"
>
{{ $t('btn_vote') }}
{{ $t('governance-proposal.btn_vote') }}
</b-button>
</b-card-footer>
</b-card>