From 902827c92ff013a028841cdb613d8719e5de44c6 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Sun, 29 Sep 2024 10:48:00 +0200 Subject: [PATCH] refactor(drawer): add link to Dashboard. ref #866 --- src/i18n/locales/en.json | 4 ++++ src/router.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index ccb39755cc5..c22ee490e07 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -382,6 +382,9 @@ "Home": { "Title": "Home" }, + "Dashboard": { + "Title": "Dashboard" + }, "LatestPrices": { "Title": "Latest prices" }, @@ -443,6 +446,7 @@ "LatestPrices": "Latest prices", "LatestProofs": "Latest proofs", "LoadMore": "Load more", + "MyDashboard": "My dashboard", "MyPrices": "My prices", "MyProofs": "My proofs", "ProofUpdated": "Proof updated!", diff --git a/src/router.js b/src/router.js index 670a7cb1d62..49eb3fb3793 100644 --- a/src/router.js +++ b/src/router.js @@ -6,7 +6,7 @@ import localeManager from './i18n/localeManager.js' const routes = [ { path: '/', name: 'home', component: () => import('./views/Home.vue'), meta: { title: 'Home', icon: 'mdi-home', drawerMenu: true } }, { path: '/sign-in', name: 'sign-in', component: () => import('./views/SignIn.vue'), meta: { title: 'SignIn', icon: 'mdi-login', drawerMenu: true, requiresAuth: false } }, - { path: '/dashboard', name: 'dashboard', component: () => import('./views/UserDashboard.vue'), meta: { title: 'Dashboard', requiresAuth: true } }, + { path: '/dashboard', name: 'dashboard', component: () => import('./views/UserDashboard.vue'), meta: { title: 'Dashboard', icon: 'mdi-view-dashboard-outline', drawerMenu: true, requiresAuth: true } }, { path: '/dashboard/prices', name: 'dashboard-prices', component: () => import('./views/UserDashboardPriceList.vue'), meta: { title: 'MyPrices', requiresAuth: true } }, { path: '/dashboard/proofs', name: 'dashboard-proofs', component: () => import('./views/UserDashboardProofList.vue'), meta: { title: 'MyProofs', requiresAuth: true } }, { path: '/settings', name: 'settings', component: () => import('./views/UserSettings.vue'), meta: { title: 'Settings', requiresAuth: true } },