Skip to content

Commit

Permalink
Merge pull request #573 from baking-bad/remove-periodic-nets
Browse files Browse the repository at this point in the history
Remove periodic networks
  • Loading branch information
GusevPM authored May 29, 2024
2 parents 810406c + 01b2066 commit c4fa465
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/components/MainHeaderDescriptive.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,6 @@
</RouterLink>
</div>
<div>
<v-btn v-if="!isSandbox"
@click="bcdModeRedirect"
text
small
class="text--secondary"
active-class="bg-before-transparent"
> {{ bcdInMainMode ? 'Periodic BCD' : 'Main BCD' }}
</v-btn>
<v-btn v-if="searchService.created()" text small :to="{ name: 'search' }" class="text--secondary" active-class="bg-before-transparent">
Search
</v-btn>
Expand Down Expand Up @@ -77,19 +69,7 @@ export default {
}
return `/${this.$route.params.network || this.config.networks[0]}/`
},
bcdInMainMode() {
return !window.location.hostname.startsWith('teztnets');
},
},
methods: {
bcdModeRedirect() {
if (this.bcdInMainMode) {
window.location.href = 'https://teztnets.better-call.dev/';
} else {
window.location.href = 'https://better-call.dev/';
}
},
}
}
</script>

Expand Down

0 comments on commit c4fa465

Please sign in to comment.