Skip to content

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

chore: improve attention wording (#4390)

Tianzhou (天舟)eaa1b046f6b6
diff --git a/frontend/src/components/Issue/AssigneeAttentionButton.vue b/frontend/src/components/Issue/AssigneeAttentionButton.vue
index 2410fae0f4..238b89bd32 100644
--- a/frontend/src/components/Issue/AssigneeAttentionButton.vue
+++ b/frontend/src/components/Issue/AssigneeAttentionButton.vue
@@ -108,6 +108,8 @@ const notifyAssignee = () => {
if (!showNotifyAssignee.value) return;
if (isAssigneeAttentionOn.value) return;
+ const issueEntity = issue.value as Issue;
+
useIssueStore()
.patchIssue({
issueId: (issue.value as Issue).id,
@@ -120,7 +122,9 @@ const notifyAssignee = () => {
? t("issue.assignee-attention.send-approval-request-successfully", {
im: imTypeName.value,
})
- : t("common.updated");
+ : t("issue.assignee-attention.send-attention-request-successfully", {
+ principal: issueEntity.assignee.name,
+ });
pushNotification({
module: "bytebase",
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index d63277ebeb..03cab5874d 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -592,8 +592,9 @@
"issue-link-with-task": "Issue {issue} - task {task}",
"assignee-attention": {
"send-approval-request-successfully": "Send a {im} approval request successfully",
- "needs-attention": "Needs attention",
- "click-to-mark": "Click to mark it as \"Needs attention\""
+ "send-attention-request-successfully": "Request assignee {principal} attention successfully",
+ "needs-attention": "Attention needed",
+ "click-to-mark": "Click to request assignee attention"
}
},
"alter-schema": {
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 28542aa286..5d5864db61 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -592,8 +592,9 @@
"issue-link-with-task": "工单 {issue} - 任务 {task}",
"assignee-attention": {
"send-approval-request-successfully": "{im}审批请求发送成功",
+ "send-attention-request-successfully": "审核人 {principal} 已收到关注请求",
"needs-attention": "需要关注",
- "click-to-mark": "点击以标记为「需要关注」"
+ "click-to-mark": "点击以请求审核人关注"
}
},
"alter-schema": {