Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new menu item 'network' && fixes table for network page (baking-b…
Browse files Browse the repository at this point in the history
llomal authored Jul 7, 2022

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent e126169 commit 1eba267
Showing 4 changed files with 19 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -190,4 +190,8 @@ input:-webkit-autofill:active {
.v-content-class {
margin-top: var(--main-header-weight);
}
.hide-pagination-count .v-data-footer__pagination{
display: none;
}
</style>
6 changes: 6 additions & 0 deletions src/components/MainHeaderDescriptive.vue
Original file line number Diff line number Diff line change
@@ -10,6 +10,9 @@
<v-btn text small :to="{ name: 'search' }" class="text--secondary" active-class="bg-before-transparent">
Search
</v-btn>
<v-btn text small :to="{ path: networksPath }" class="text--secondary" active-class="bg-before-transparent">
Networks
</v-btn>
<v-btn text small :to="{ path: `/stats/${config.networks[0]}/general` }" class="text--secondary" active-class="bg-before-transparent">
Stats
</v-btn>
@@ -56,6 +59,9 @@ export default {
},
isDarkTheme() {
return this.$vuetify.theme.dark;
},
networksPath() {
return `/${this.$route.params.network || 'mainnet'}/`
}
},
}
9 changes: 7 additions & 2 deletions src/components/Tables/RecentlyCalledContracts.vue
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@
<v-data-table
:items="recentlyCalledContracts"
:headers="recentlyCalledTableHeaders"
class="ba-1 mt-4 avg-gas-consumption"
:class="['ba-1 mt-4 avg-gas-consumption', {'hide-pagination-count' : hidePaginationCount}]"
:hide-default-footer="!pageable"
:page.sync="page"
:items-per-page="itemsPerPage"
:options="{itemsPerPage}"
:footer-props="{
itemsPerPageOptions: []
}"
@@ -58,6 +58,10 @@ export default {
type: Boolean,
default: true,
},
hidePaginationCount: {
type: Boolean,
default: false,
},
pageable: {
type: Boolean,
default: false,
@@ -172,4 +176,5 @@ export default {
font-weight: 400;
}
}
</style>
3 changes: 2 additions & 1 deletion src/views/network/NetworkTab.vue
Original file line number Diff line number Diff line change
@@ -5,8 +5,9 @@
<h3 class="text--secondary font-weight-regular header-table">Recently called contracts</h3>
<RecentlyCalledContracts
class="mt-4"
hide-pagination-count
:network="network"
:items-per-page="10"
:items-per-page="7"
:updateable="false"
pageable
/>

0 comments on commit 1eba267

Please sign in to comment.