Skip to content

Commit

Permalink
Update admin home view to use the route name "admin-home", add consol…
Browse files Browse the repository at this point in the history
…e table for current route, and update button label in the invitations view to "Create Invitation".
  • Loading branch information
realashleybailey committed Sep 16, 2023
1 parent 7385d93 commit 1d22714
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion frontend/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const router = createRouter({
children: [
{
path: "",
name: "home",
name: "admin-home",
component: () => import("@/views/AdminViews/HomeView.vue"),
},
{
Expand Down Expand Up @@ -180,5 +180,7 @@ router.afterEach(() => {
useProgressStore().startProgress();
});

console.table(router.currentRoute.value);

export default router;
export { router };
2 changes: 1 addition & 1 deletion frontend/src/views/AdminViews/InvitationsView.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<AdminTemplate :header="__('Invitations')" :subheader="__('Manage your invitations')" :box-view="boxView">
<template #header>
<DefaultButton @click="inviteModal = true" :label="__('Create Invite')" theme="secondary" />
<DefaultButton @click="inviteModal = true" :label="__('Create Invitation')" theme="secondary" />
</template>
<template #default>
<InvitationList />
Expand Down

0 comments on commit 1d22714

Please sign in to comment.