Skip to content

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

chore: hide approval tooltip for grant request issue (#6645)

boojackf7bdfee3d9c7
diff --git a/frontend/src/components/Issue/panel/RequestExportPanel/SelectTableForm/Label.vue b/frontend/src/components/Issue/panel/RequestExportPanel/SelectTableForm/Label.vue
index ced0b9d4b1..ece6785206 100644
--- a/frontend/src/components/Issue/panel/RequestExportPanel/SelectTableForm/Label.vue
+++ b/frontend/src/components/Issue/panel/RequestExportPanel/SelectTableForm/Label.vue
@@ -1,11 +1,11 @@
<template>
- <div class="flex items-center gap-x-1">
+ <div class="w-full flex items-center truncate gap-x-1">
<span v-if="environment" class="text-gray-400">
(<EnvironmentV1Name :environment="environment" :link="false" />)
</span>
<Prefix />
<!-- eslint-disable-next-line vue/no-v-html -->
- <span class="truncate" v-html="optionName" />
+ <span v-html="optionName" />
<span v-if="database" class="ml-1 text-gray-500 flex flex-row items-center">
(<InstanceV1Name
:instance="database.instanceEntity"
diff --git a/frontend/src/components/Issue/review/IssueReviewSidebarSection.vue b/frontend/src/components/Issue/review/IssueReviewSidebarSection.vue
index 5cd1856be4..21b55937eb 100644
--- a/frontend/src/components/Issue/review/IssueReviewSidebarSection.vue
+++ b/frontend/src/components/Issue/review/IssueReviewSidebarSection.vue
@@ -2,7 +2,7 @@
<h2 class="textlabel flex items-start col-span-1 col-start-1 pt-1">
<div class="flex items-center gap-x-1">
<span>{{ $t("issue.approval-flow.self") }}</span>
- <NTooltip>
+ <NTooltip v-if="showApprovalTooltip">
<div class="max-w-[24rem]">
{{ $t("issue.approval-flow.tooltip") }}
</div>
@@ -54,6 +54,7 @@ import IssueReviewPanel from "./IssueReviewPanel.vue";
import { useReviewStore } from "@/store";
import { useIssueLogic } from "../logic";
import { Issue } from "@/types";
+import { isGrantRequestIssueType } from "@/utils";
const store = useReviewStore();
const issueContext = useIssueLogic();
@@ -72,4 +73,12 @@ const retryFindingApprovalFlow = async () => {
retrying.value = false;
}
};
+
+const showApprovalTooltip = computed(() => {
+ // Don't show the tooltip if the issue type is grant request.
+ if (isGrantRequestIssueType(issue.value.type)) {
+ return false;
+ }
+ return true;
+});
</script>