diff --git a/frontend/src/components/Menu/Sidebar.vue b/frontend/src/components/Menu/Sidebar.vue index 00243fa49..fc3ecc21d 100644 --- a/frontend/src/components/Menu/Sidebar.vue +++ b/frontend/src/components/Menu/Sidebar.vue @@ -16,6 +16,10 @@ {{ $t('navigation.transactions') }} + + + {{ $t('gdt.gdt') }} + {{ $t('navigation.community') }} diff --git a/frontend/src/pages/Transactions.vue b/frontend/src/pages/Transactions.vue index 109e3f19c..d0f4ac8b8 100644 --- a/frontend/src/pages/Transactions.vue +++ b/frontend/src/pages/Transactions.vue @@ -1,7 +1,11 @@ - + {{ $t('transaction.gdd-text') }} { this.transactionGdtCount = -1 @@ -94,10 +101,26 @@ export default { return this.$t('gdt.gdt') }, }, + created() { + if (this.gdt) { + this.tabIndex = 1 + this.updateGdt() + } else { + this.tabIndex = 0 + } + }, watch: { currentPage() { this.updateGdt() }, + gdt() { + if (this.gdt) { + this.tabIndex = 1 + this.updateGdt() + } else { + this.tabIndex = 0 + } + }, }, } diff --git a/frontend/src/routes/routes.js b/frontend/src/routes/routes.js index 540ef9d69..2c727304b 100755 --- a/frontend/src/routes/routes.js +++ b/frontend/src/routes/routes.js @@ -34,6 +34,15 @@ const routes = [ { path: '/transactions', component: () => import('@/pages/Transactions.vue'), + props: { gdt: false }, + meta: { + requiresAuth: true, + }, + }, + { + path: '/gdt', + component: () => import('@/pages/Transactions.vue'), + props: { gdt: true }, meta: { requiresAuth: true, },
{{ $t('transaction.gdd-text') }}