From de0210e3450250dbb7ea34e585300b73c38ce1ec Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 4 Aug 2023 15:11:59 +0530 Subject: [PATCH] fix: show comments on activity --- frontend/src/components/Activities.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/Activities.vue b/frontend/src/components/Activities.vue index 91882b53..5498a25b 100644 --- a/frontend/src/components/Activities.vue +++ b/frontend/src/components/Activities.vue @@ -61,6 +61,11 @@ +
@@ -90,15 +95,21 @@ const activities = computed(() => { props.activities.forEach((activity) => { activity.owner_name = getUser(activity.owner).full_name activity.icon = timelineIcon(activity.activity_type) + activity.type = '' + activity.value = '' + activity.to = '' + if (activity.activity_type == 'creation') { activity.type = activity.data + } else if (activity.activity_type == 'comment') { + activity.type = 'commented' } else if (activity.activity_type == 'added') { activity.type = 'added' activity.value = 'value as' } else if (activity.activity_type == 'removed') { activity.type = 'removed' activity.value = 'value' - } else { + } else if (activity.activity_type == 'changed') { activity.type = 'changed' activity.value = 'value from' activity.to = 'to'