Skip to content

Commit b281cf3

Browse files
committed
change name from audit to all messages and include message view route
1 parent 36d7815 commit b281cf3

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

src/Frontend/src/components/audit/AuditMenuItem.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import routeLinks from "@/router/routeLinks";
55

66
<template>
77
<RouterLink :to="routeLinks.audit.root">
8-
<i class="fa fa-envelope icon-white" title="Audit"></i>
9-
<span class="navbar-label">Audit</span>
8+
<i class="fa fa-envelope icon-white" title="All Messages"></i>
9+
<span class="navbar-label">All Messages</span>
1010
</RouterLink>
1111
</template>
1212

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<script setup lang="ts"></script>
2+
3+
<template>
4+
<div>Hello</div>
5+
</template>

src/Frontend/src/router/config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ const config: RouteItem[] = [
5656
{
5757
path: routeLinks.audit.root,
5858
component: AuditView,
59-
title: "Messages",
59+
title: "All Messages",
60+
},
61+
{
62+
path: routeLinks.audit.message.template,
63+
title: "Message",
64+
component: () => import("@/components/audit/MessageView.vue"),
6065
},
6166
{
6267
path: routeLinks.failedMessage.root,

src/Frontend/src/router/routeLinks.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,9 @@ const heartbeatLinks = (root: string) => {
1313
};
1414

1515
const auditLinks = (root: string) => {
16-
// function createLink(template: string) {
17-
// return { link: `${root}/${template}`, template: template };
18-
// }
19-
2016
return {
2117
root,
22-
message: { link: (id: string) => `${root}/message/${id}`, template: "message/:id" },
18+
message: { link: (id: string) => `${root}/message/${id}`, template: `${root}/message/:id` },
2319
};
2420
};
2521

src/Frontend/src/views/AuditView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import AuditList from "@/components/audit/AuditList.vue";
1010
<div class="container">
1111
<div class="row">
1212
<div class="col-12">
13-
<h1>Audit Messages</h1>
13+
<h1>All Messages</h1>
1414
</div>
1515
</div>
1616
<div class="row">

0 commit comments

Comments
 (0)