diff --git a/frontend/src/components/Activities.vue b/frontend/src/components/Activities.vue index 4922bd30..2ffde9a1 100644 --- a/frontend/src/components/Activities.vue +++ b/frontend/src/components/Activities.vue @@ -329,7 +329,7 @@ {{ activity.value }}
{{ getUser(activity.data.old_value).full_name }}
-
+
{{ activity.data.old_value }}
to
{{ getUser(activity.data.value).full_name }}
-
+
{{ activity.data.value }}
@@ -374,28 +374,53 @@ v-for="activity in activity.other_versions" class="flex items-start justify-stretch gap-2 text-base" > -
- {{ activity.type }} - - {{ activity.data.field_label }} - - {{ activity.value }} - - {{ activity.data.old_value }} - - to - - {{ activity.data.value }} - +
+
+ + {{ activity.data.field_label }} + + +
+
+ {{ startCase(activity.type) }} + +
+ + {{ getUser(activity.data.old_value).full_name }} +
+
+ {{ activity.data.old_value }} +
+
+ to + +
+ + {{ getUser(activity.data.value).full_name }} +
+
+ {{ activity.data.value }} +
+
+
@@ -480,6 +505,7 @@ import { dateFormat, dateTooltipFormat, secondsToDuration, + startCase, } from '@/utils' import { usersStore } from '@/stores/users' import { contactsStore } from '@/stores/contacts' diff --git a/frontend/src/utils.js b/frontend/src/utils.js index 0200056a..37e5eced 100644 --- a/frontend/src/utils.js +++ b/frontend/src/utils.js @@ -124,3 +124,7 @@ export function formatNumberIntoCurrency(value) { } return '' } + +export function startCase(str) { + return str.charAt(0).toUpperCase() + str.slice(1) +}