Skip to content

Commit 77699e4

Browse files
committed
validator add copy pub key button
1 parent f3e8ad6 commit 77699e4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pages/validators/_pubKey.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import {pretty, prettyPrecise, prettyRound} from '~/assets/utils';
77
import {TAB_TYPES, VALIDATOR_STATUS} from '~/assets/variables.js';
88
import Amount from '@/components/common/Amount.vue';
9+
import ButtonCopyIcon from '~/components/common/ButtonCopyIcon';
910
import TransactionListTable from '~/components/TransactionListTable';
1011
import StakeListTable from '~/components/StakeListTable';
1112
import PenaltyListTable from '~/components/PenaltyListTable.vue';
@@ -27,6 +28,7 @@
2728
VALIDATOR_STATUS,
2829
components: {
2930
Amount,
31+
ButtonCopyIcon,
3032
StakeListTable,
3133
PenaltyListTable,
3234
TransactionListTable,
@@ -245,7 +247,10 @@
245247
</div>
246248
<dl>
247249
<dt>Public Key</dt>
248-
<dd class="dd u-select-all">{{ $route.params.pubKey }}</dd>
250+
<dd>
251+
<span class="u-select-all">{{ $route.params.pubKey }}</span>
252+
<ButtonCopyIcon :copy-text="$route.params.pubKey"/>
253+
</dd>
249254

250255
<dt v-if="validator.name">Name</dt>
251256
<dd v-if="validator.name">

0 commit comments

Comments
 (0)