From 1d227143ac30aadee7c0afe8be201c07171e7814 Mon Sep 17 00:00:00 2001 From: Ashley Date: Sat, 16 Sep 2023 01:00:28 +0100 Subject: [PATCH] Update admin home view to use the route name "admin-home", add console table for current route, and update button label in the invitations view to "Create Invitation". --- frontend/src/router/index.ts | 4 +++- frontend/src/views/AdminViews/InvitationsView.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index aed37354a..c10c12b41 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -66,7 +66,7 @@ const router = createRouter({ children: [ { path: "", - name: "home", + name: "admin-home", component: () => import("@/views/AdminViews/HomeView.vue"), }, { @@ -180,5 +180,7 @@ router.afterEach(() => { useProgressStore().startProgress(); }); +console.table(router.currentRoute.value); + export default router; export { router }; diff --git a/frontend/src/views/AdminViews/InvitationsView.vue b/frontend/src/views/AdminViews/InvitationsView.vue index 7bd07f34d..45afda834 100644 --- a/frontend/src/views/AdminViews/InvitationsView.vue +++ b/frontend/src/views/AdminViews/InvitationsView.vue @@ -1,7 +1,7 @@