import {
- BRow, BCol, VBTooltip, BFormInput, BCard, BAlert, BFormCheckbox, BButton, BBadge,
+ BRow, BCol, VBTooltip, BFormInput, BCard, BAlert, BFormCheckbox, BButton, BBadge, BInputGroup, BInputGroupPrepend,
} from 'bootstrap-vue'
import {
@@ -91,6 +113,8 @@ export default {
BButton,
BBadge,
BFormCheckbox,
+ BInputGroup,
+ BInputGroupPrepend,
},
directives: {
'b-tooltip': VBTooltip,
@@ -99,6 +123,7 @@ export default {
const { chain } = this.$route.params
const pinned = localStorage.getItem('pinned') ? localStorage.getItem('pinned').split(',') : ''
return {
+ missedFilter: false,
pinned,
chain,
query: '',
@@ -113,10 +138,14 @@ export default {
uptime() {
const vals = this.query ? this.validators.filter(x => String(x.description.moniker).indexOf(this.query) > -1) : this.validators
vals.sort((a, b) => b.delegator_shares - a.delegator_shares)
- return vals.map(x => ({
+ const rets = vals.map(x => ({
validator: x.description,
address: consensusPubkeyToHexAddress(x.consensus_pubkey),
}))
+ if (this.missedFilter) {
+ return rets.filter(x => this.missing[x.address].missed_blocks_counter > 0)
+ }
+ return rets
},
},
created() {
diff --git a/src/views/UptimeMyChainBlocks.vue b/src/views/UptimeMyChainBlocks.vue
index 84dcbad4..7abcb12d 100644
--- a/src/views/UptimeMyChainBlocks.vue
+++ b/src/views/UptimeMyChainBlocks.vue
@@ -32,15 +32,27 @@
>
{{ x.validator.moniker }}
-
- {{ missing[x.address].missed_blocks_counter }}
-
+
+ {{ missing[x.address].missed_blocks_counter }}
+
+
+ 0
+
+
- There are two ways to monitor your valdiators:
-
Pin a validator on Uptime page.
+ There are two ways to monitor your validators:
+
Pin a validator on Uptime pages.
Specify parameters like following: https://ping.pub/cosmos/uptime/my?validators={"sifchain":["FBADE9A30473BB9ED6DFA16BFB3838E028F33650"],"chain_name":["hexAddress"]}