Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(frontend): issue activity improvement and bug fix (#1793)
Liu Jie6e32a52bdef
diff --git a/frontend/src/components/Issue/IssueActivityPanel.vue b/frontend/src/components/Issue/IssueActivityPanel.vueindex eb7418d827..4d8b7eb59a 100644--- a/frontend/src/components/Issue/IssueActivityPanel.vue+++ b/frontend/src/components/Issue/IssueActivityPanel.vue@@ -150,7 +150,7 @@</a></div><div- v-if="currentUser.id == activity.creator.id"+ v-if="allowEditActivity(activity)"class="space-x-2 flex items-center text-control-light"><template@@ -177,19 +177,6 @@</template><!-- mr-2 is to vertical align with the text description edit button--><div v-else class="mr-2 flex items-center space-x-2">- <!-- Delete Comment Button-->- <button- v-if="activity.type == 'bb.issue.comment.create'"- class="btn-icon"- @click.prevent="- {- state.activeActivity = activity;- state.showDeleteCommentModal = true;- }- "- >- <heroicons-outline:trash class="w-4 h-4" />- </button><!-- Edit Comment Button--><buttonclass="btn-icon"@@ -484,6 +471,13 @@ const doCreateComment = () => {});};+const allowEditActivity = (activity: Activity) => {+ return (+ activity.type === "bb.issue.comment.create" &&+ currentUser.value.id === activity.creator.id+ );+};+const onUpdateComment = (activity: Activity) => {editComment.value = activity.comment;state.activeActivity = activity;