|
1 | 1 | <template> |
2 | | - <v-card |
3 | | - color="cardBackground"> |
4 | | - <v-card-title> |
5 | | - <h3 class="text-h5">Activity</h3> |
6 | | - </v-card-title> |
7 | | - <v-card-text class="mt-10"> |
8 | | - <v-row> |
9 | | - <v-timeline align-top truncate-line="start" side="end" class="mr-5"> |
10 | | - <v-timeline-item |
11 | | - v-for="event in auditEvents" :key="event.id" |
12 | | - :color=event.color |
13 | | - :icon=getIcon(event.action) |
14 | | - dot-color="var(--v-primary-base)" |
15 | | - fill-dot> |
16 | | - <div> |
17 | | - <!--<strong class="me-4">{{ event.metadata.creationTimestamp }}</strong>--> |
| 2 | + <div> |
| 3 | + <v-card |
| 4 | + color="cardBackground" |
| 5 | + v-if="auditEvents.length >0"> |
| 6 | + <v-card-title> |
| 7 | + <h3 class="text-h5">Activity</h3> |
| 8 | + </v-card-title> |
| 9 | + <v-card-text class="mt-10"> |
| 10 | + <v-row> |
| 11 | + <v-timeline align-top truncate-line="start" side="end" class="mr-5"> |
| 12 | + <v-timeline-item |
| 13 | + v-for="event in auditEvents" :key="event.id" |
| 14 | + :color=event.color |
| 15 | + :icon=getIcon(event.action) |
| 16 | + dot-color="var(--v-primary-base)" |
| 17 | + fill-dot> |
18 | 18 | <div> |
19 | | - <strong>{{ event.user }}: </strong> {{ event.action }} {{ event.resource }} |
20 | | - <div class="text-caption"> |
21 | | - {{ event.timestamp }} · v{{ event.id }} · {{ event.message }} |
| 19 | + <!--<strong class="me-4">{{ event.metadata.creationTimestamp }}</strong>--> |
| 20 | + <div> |
| 21 | + <strong>{{ event.user }}: </strong> {{ event.action }} {{ event.resource }} |
| 22 | + <div class="text-caption"> |
| 23 | + {{ event.timestamp }} · v{{ event.id }} · {{ event.message }} |
| 24 | + </div> |
22 | 25 | </div> |
23 | 26 | </div> |
24 | | - </div> |
25 | | - <v-divider v-if="event !== auditEvents[auditEvents.length - 1]" ></v-divider> |
26 | | - </v-timeline-item> |
| 27 | + <v-divider v-if="event !== auditEvents[auditEvents.length - 1]" ></v-divider> |
| 28 | + </v-timeline-item> |
27 | 29 |
|
28 | | - </v-timeline> |
29 | | - </v-row> |
30 | | - </v-card-text> |
31 | | - </v-card> |
| 30 | + </v-timeline> |
| 31 | + </v-row> |
| 32 | + </v-card-text> |
| 33 | + </v-card> |
| 34 | + |
| 35 | + <v-alert |
| 36 | + outlined |
| 37 | + type="info" |
| 38 | + variant="tonal" |
| 39 | + border="start" |
| 40 | + v-if="auditEvents.length <1"> |
| 41 | + <h3>Audit</h3> |
| 42 | + The audi log is ether empty or disabled. |
| 43 | + |
| 44 | + </v-alert> |
| 45 | + </div> |
32 | 46 | </template> |
33 | 47 |
|
34 | 48 | <script lang="ts"> |
|
0 commit comments