add withdraw on dashboard
This commit is contained in:
parent
55e6b00d9a
commit
bc82cc9577
@ -198,6 +198,7 @@
|
|||||||
</b-row>
|
</b-row>
|
||||||
<b-row v-if="stakingList && stakingList.length > 0">
|
<b-row v-if="stakingList && stakingList.length > 0">
|
||||||
<b-col>
|
<b-col>
|
||||||
|
<b-card no-body>
|
||||||
<b-table
|
<b-table
|
||||||
:items="stakingList"
|
:items="stakingList"
|
||||||
:fields="fields"
|
:fields="fields"
|
||||||
@ -241,6 +242,17 @@
|
|||||||
</b-button-group>
|
</b-button-group>
|
||||||
</template>
|
</template>
|
||||||
</b-table>
|
</b-table>
|
||||||
|
<b-card-footer class="text-right">
|
||||||
|
<b-button
|
||||||
|
v-b-modal.operation-modal
|
||||||
|
variant="outline-primary"
|
||||||
|
@click="selectWithdraw()"
|
||||||
|
>
|
||||||
|
<feather-icon icon="AwardIcon" />
|
||||||
|
Widthdraw Rewards
|
||||||
|
</b-button>
|
||||||
|
</b-card-footer>
|
||||||
|
</b-card>
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
|
|
||||||
@ -331,7 +343,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
BRow, BCol, BAlert, BCard, BTable, BFormCheckbox, BCardHeader, BCardTitle, BMedia, BMediaAside, BMediaBody, BAvatar,
|
BRow, BCol, BAlert, BCard, BTable, BFormCheckbox, BCardHeader, BCardTitle, BMedia, BMediaAside, BMediaBody, BAvatar,
|
||||||
BCardBody, BLink, BButtonGroup, BButton, BTooltip, VBModal, VBTooltip,
|
BCardBody, BLink, BButtonGroup, BButton, BTooltip, VBModal, VBTooltip, BCardFooter,
|
||||||
} from 'bootstrap-vue'
|
} from 'bootstrap-vue'
|
||||||
import {
|
import {
|
||||||
formatNumber, formatTokenAmount, isToken, percent, timeIn, toDay, toDuration, tokenFormatter, getLocalAccounts,
|
formatNumber, formatTokenAmount, isToken, percent, timeIn, toDay, toDuration, tokenFormatter, getLocalAccounts,
|
||||||
@ -365,6 +377,7 @@ export default {
|
|||||||
BMedia,
|
BMedia,
|
||||||
BCardBody,
|
BCardBody,
|
||||||
BLink,
|
BLink,
|
||||||
|
BCardFooter,
|
||||||
|
|
||||||
OperationModal,
|
OperationModal,
|
||||||
ParametersModuleComponent,
|
ParametersModuleComponent,
|
||||||
@ -499,6 +512,9 @@ export default {
|
|||||||
selectSend() {
|
selectSend() {
|
||||||
this.operationModalType = 'Transfer'
|
this.operationModalType = 'Transfer'
|
||||||
},
|
},
|
||||||
|
selectWithdraw() {
|
||||||
|
this.operationModalType = 'Withdraw'
|
||||||
|
},
|
||||||
formatToken(tokens) {
|
formatToken(tokens) {
|
||||||
if (Array.isArray(tokens)) {
|
if (Array.isArray(tokens)) {
|
||||||
let nativeToken = tokens.filter(x => x.denom.length < 11)
|
let nativeToken = tokens.filter(x => x.denom.length < 11)
|
||||||
|
Loading…
Reference in New Issue
Block a user