add withdraw on dashboard
This commit is contained in:
parent
55e6b00d9a
commit
bc82cc9577
@ -198,6 +198,7 @@
|
||||
</b-row>
|
||||
<b-row v-if="stakingList && stakingList.length > 0">
|
||||
<b-col>
|
||||
<b-card no-body>
|
||||
<b-table
|
||||
:items="stakingList"
|
||||
:fields="fields"
|
||||
@ -241,6 +242,17 @@
|
||||
</b-button-group>
|
||||
</template>
|
||||
</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-row>
|
||||
|
||||
@ -331,7 +343,7 @@
|
||||
<script>
|
||||
import {
|
||||
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'
|
||||
import {
|
||||
formatNumber, formatTokenAmount, isToken, percent, timeIn, toDay, toDuration, tokenFormatter, getLocalAccounts,
|
||||
@ -365,6 +377,7 @@ export default {
|
||||
BMedia,
|
||||
BCardBody,
|
||||
BLink,
|
||||
BCardFooter,
|
||||
|
||||
OperationModal,
|
||||
ParametersModuleComponent,
|
||||
@ -499,6 +512,9 @@ export default {
|
||||
selectSend() {
|
||||
this.operationModalType = 'Transfer'
|
||||
},
|
||||
selectWithdraw() {
|
||||
this.operationModalType = 'Withdraw'
|
||||
},
|
||||
formatToken(tokens) {
|
||||
if (Array.isArray(tokens)) {
|
||||
let nativeToken = tokens.filter(x => x.denom.length < 11)
|
||||
|
Loading…
Reference in New Issue
Block a user