Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore(frontend): show review sent back in issue list (#10475)
Liu Jib37445b30603
diff --git a/frontend/src/components/IssueV1/components/CurrentApproverV1.vue b/frontend/src/components/IssueV1/components/CurrentApproverV1.vueindex 72e3db221b..9d4c9af650 100644--- a/frontend/src/components/IssueV1/components/CurrentApproverV1.vue+++ b/frontend/src/components/IssueV1/components/CurrentApproverV1.vue@@ -3,6 +3,29 @@<template v-if="issue.status !== IssueStatus.OPEN || done || !ready"><span>-</span></template>+ <template v-else-if="currentStep?.status === 'REJECTED'">+ <NTooltip :disabled="!currentStep.approver">+ <template #trigger>+ <div class="flex flex-row items-center gap-x-2">+ <div+ class="w-6 h-6 rounded-full flex items-center justify-center text-sm shrink-0 bg-warning"+ >+ <heroicons:pause-solid class="w-5 h-5 text-white" />+ </div>+ <span class="text-warning">+ {{ $t("custom-approval.approval-flow.issue-review.sent-back") }}+ </span>+ </div>+ </template>+ <template #default>+ <i18n-t+ keypath="custom-approval.approval-flow.issue-review.review-sent-back-by"+ >+ <template #user>{{ currentStep.approver?.title }}</template>+ </i18n-t>+ </template>+ </NTooltip>+ </template><template v-else-if="currentApprover"><BBAvatar :size="'SMALL'" :username="currentApprover.title" /><span class="truncate">@@ -34,7 +57,9 @@ const me = useCurrentUserV1();const wrappedSteps = useWrappedReviewStepsV1(toRef(props, "issue"), context);const currentStep = computed(() => {- return wrappedSteps.value?.find((step) => step.status === "CURRENT");+ return wrappedSteps.value?.find(+ (step) => step.status === "CURRENT" || step.status === "REJECTED"+ );});const currentApprover = computed(() => {diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex e65d31cc75..fd9e788139 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -3070,6 +3070,10 @@"view-node": "View external approval node","create-node": "Create external approval node","edit-node": "Edit external approval node"+ },+ "issue-review": {+ "sent-back": "Sent back",+ "review-sent-back-by": "Review sent back by {user}"}},"risk": {diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 7e24130017..c0fd66dc3b 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -3067,6 +3067,10 @@"view-node": "Ver nodo de aprobación externo","create-node": "Crear nodo de aprobación externo","edit-node": "Editar nodo de aprobación externo"+ },+ "issue-review": {+ "sent-back": "Devuelto",+ "review-sent-back-by": "Reseña enviada por {user}"}},"risk": {diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex 9838ac4bda..5ba1615b30 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -3068,6 +3068,10 @@"view-node": "外部承認ノードを表示","create-node": "外部承認ノードを作成","edit-node": "外部承認ノードを編集"+ },+ "issue-review": {+ "sent-back": "返送されました",+ "review-sent-back-by": "レビューは {user} から返送されました"}},"risk": {diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex db1059e1e7..80ce7affae 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -3070,6 +3070,10 @@"view-node": "Xem nút phê duyệt bên ngoài","create-node": "Tạo nút phê duyệt bên ngoài","edit-node": "Chỉnh sửa nút phê duyệt bên ngoài"+ },+ "issue-review": {+ "sent-back": "Gửi lại",+ "review-sent-back-by": "Bài đánh giá được gửi lại bởi {user}"}},"risk": {diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex a205aac2b0..d0c9307e40 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -3064,6 +3064,10 @@"view-node": "查看外部审批节点","create-node": "新建外部审批节点","edit-node": "编辑外部审批节点"+ },+ "issue-review": {+ "sent-back": "被退回",+ "review-sent-back-by": "审批被 {user} 退回"}},"risk": {