Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Only show edit/delete button if the activity type is bytebase.task.comment.create

Tianzhou Chen01fedfe17d48
diff --git a/frontend/src/views/TaskActivityPanel.vue b/frontend/src/views/TaskActivityPanel.vue
index 163a96c17b..67017934f2 100644
--- a/frontend/src/views/TaskActivityPanel.vue
+++ b/frontend/src/views/TaskActivityPanel.vue
@@ -83,7 +83,11 @@
</a>
</div>
<div
- v-if="currentUser.id == activity.attributes.creator.id"
+ v-if="
+ currentUser.id == activity.attributes.creator.id &&
+ activity.attributes.actionType ==
+ 'bytebase.task.comment.create'
+ "
class="space-x-2 text-control-light"
>
<template