From 057cf70fbced3edf59444a58ba0a7708daf7139d Mon Sep 17 00:00:00 2001 From: Vadim Macagon Date: Tue, 4 Jul 2023 12:59:00 +0700 Subject: [PATCH 1/2] Fix vertical alignment of election timer The election timer on the validator list page was misaligned. --- src/dpos/components/ElectionTimer.vue | 2 +- src/locales/en.json | 2 +- src/locales/es.json | 2 +- src/locales/ja.json | 2 +- src/locales/ko.json | 2 +- src/locales/th.json | 2 +- src/locales/zh.json | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/dpos/components/ElectionTimer.vue b/src/dpos/components/ElectionTimer.vue index f2539651..488c179e 100644 --- a/src/dpos/components/ElectionTimer.vue +++ b/src/dpos/components/ElectionTimer.vue @@ -1,6 +1,6 @@ - @@ -163,25 +161,26 @@ export default class ValidatorList extends Vue { validatorFields: any[] = [] created() { - this.validatorFields = [{ key: "name", sortable: true, label: this.$t("views.validator_list.name") }, - { key: "active", sortable: true, label: this.$t("views.validator_detail.active") }, - // { key: "recentlyMissedBlocks", sortable: true, label: "Recently missed blocks" }, - { - key: "totalStaked", - sortable: true, - label: this.$t("components.modals.faucet_redelegate_modal.total_stake"), - formatter: (value) => formatTokenAmount(value, 18, 0), - thClass: "align-center-th", - tdClass: "align-right-td", - }, - { - key: "fee", - sortable: true, - label: this.$t("components.validator_extended_detail.fee"), - formatter: (value) => value + "%", - thClass: "align-center-th", - tdClass: "align-right-td", - }, + this.validatorFields = [ + { key: "name", sortable: true, label: this.$t("views.validator_list.name") }, + { key: "state", sortable: true, label: this.$t("views.validator_detail.state") }, + // { key: "recentlyMissedBlocks", sortable: true, label: "Recently missed blocks" }, + { + key: "totalStaked", + sortable: true, + label: this.$t("components.modals.faucet_redelegate_modal.total_stake"), + formatter: (value) => formatTokenAmount(value, 18, 0), + thClass: "align-center-th", + tdClass: "align-right-td", + }, + { + key: "fee", + sortable: true, + label: this.$t("components.validator_extended_detail.fee"), + formatter: (value) => value + "%", + thClass: "align-center-th", + tdClass: "align-right-td", + }, ] }