Skip to content

Commit

Permalink
remove hardfork menu; keep the completed page
Browse files Browse the repository at this point in the history
  • Loading branch information
ziogaschr committed Mar 7, 2024
1 parent b6e5c2a commit 60a9e1c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
4 changes: 3 additions & 1 deletion components/ForkCountdownCard.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<template>
<v-sheet class="pa-5 mx-sm-1 mx-0 mb-1">
<h1 class="mb-3">ETC {{ nextFork.name }} Upgrade Countdown</h1>
<h1 class="mb-3">
ETC {{ nextFork.name }} Upgrade {{ isForked ? 'Info' : 'Countdown' }}
</h1>

<p>
The <a :href="nextFork.ecip">{{ nextFork.name }} Hardfork</a>
Expand Down
4 changes: 3 additions & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
<v-icon>mdi-home</v-icon>
</v-btn>

<span v-if="params.hardfork.enabled">
<span
v-if="params.hardfork.enabled && !params.hardfork.forkCompletedMode"
>
<NuxtLink
:to="`/fork/${params.hardfork.name.toLowerCase()}`"
class="ml-4 text-body-2 text-sm-body-1"
Expand Down
9 changes: 6 additions & 3 deletions pages/fork/_name.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ForkCountdownCard :latest-block-number="liveStats.latestBlockNumber" />
</v-col>
</v-row>
<v-row>
<v-row v-if="!params.hardfork.forkCompletedMode">
<v-col cols="12" :class="{ 'pa-1': isMobile }">
<LiveStatsTable
:nodes="liveStats.raw"
Expand All @@ -14,15 +14,15 @@
/>
</v-col>
</v-row>
<v-row>
<v-row v-if="!params.hardfork.forkCompletedMode">
<v-col cols="12" md="6" :class="{ 'pa-1': isMobile }">
<ForkClientUpgraded :nodes="nodes" />
</v-col>
<v-col cols="12" md="6" :class="{ 'pa-1': isMobile }">
<NodeOperatorsUpgradedCard :operators="operators" />
</v-col>
</v-row>
<v-row>
<v-row v-if="!params.hardfork.forkCompletedMode">
<v-col
v-for="(categoryOperators, category) in operators.raw"
:key="category"
Expand Down Expand Up @@ -65,6 +65,9 @@ export default {
])
},
computed: {
params() {
return this.$store.state.params
},
nodes() {
return this.$store.state.nodes
},
Expand Down
1 change: 1 addition & 0 deletions params/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
},
"hardfork": {
"enabled": true,
"forkCompletedMode": true,
"blockNumber": 19250000,
"name": "Spiral",
"ecip": "https: //ecips.ethereumclassic.org/ECIPs/ecip-1109",
Expand Down

0 comments on commit 60a9e1c

Please sign in to comment.