forked from ArkEcosystemArchive/explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: locked balance for timelocks and vote refactor
- Loading branch information
1 parent
c38719b
commit bb001cc
Showing
7 changed files
with
131 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<template> | ||
<div v-if="isVoting" class="WalletVote"> | ||
<div class="list-row-border-b"> | ||
<div>{{ $t("WALLET.VOTING_FOR") }}</div> | ||
<div> | ||
<LinkWallet v-if="votedDelegate.address" :address="votedDelegate.address"> | ||
<span class="truncate">{{ votedDelegate.username }}</span> | ||
</LinkWallet> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { Component, Prop, Vue } from "vue-property-decorator"; | ||
import { IWallet } from "@/interfaces"; | ||
@Component | ||
export default class WalletVote extends Vue { | ||
@Prop({ required: true }) public wallet: IWallet; | ||
private view: string = "public"; | ||
private knownWallets: { [key: string]: string }; | ||
get votedDelegate() { | ||
return this.$store.getters["delegates/byPublicKey"](this.wallet.vote) || {}; | ||
} | ||
get isVoting() { | ||
return !!this.wallet.vote; | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters