Skip to content

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

chore: feature guard for "waiting for my approval" issue list section (#5503)

Liu Ji0963c01b3311
diff --git a/frontend/src/components/ProjectOverviewPanel.vue b/frontend/src/components/ProjectOverviewPanel.vue
index dc536ffa3f..1c62d986d6 100644
--- a/frontend/src/components/ProjectOverviewPanel.vue
+++ b/frontend/src/components/ProjectOverviewPanel.vue
@@ -45,6 +45,7 @@
</p>
<WaitingForMyApprovalIssueTable
+ v-if="hasCustomApprovalFeature"
:issue-find="{
statusList: ['OPEN'],
projectId: project.id,
@@ -128,6 +129,7 @@ import { Database, Issue, Project, LabelKeyType } from "../types";
import { findDefaultGroupByLabel } from "../utils";
import PagedIssueTable from "@/components/Issue/table/PagedIssueTable.vue";
import PagedActivityTableVue from "./PagedActivityTable.vue";
+import { featureToRef } from "@/store";
// Show at most 5 activity
const ACTIVITY_LIMIT = 5;
@@ -168,6 +170,7 @@ export default defineComponent({
xAxisLabel: "bb.environment",
yAxisLabel: undefined,
});
+ const hasCustomApprovalFeature = featureToRef("bb.feature.custom-approval");
const isTenantProject = computed((): boolean => {
return props.project.tenantMode === "TENANT";
@@ -193,6 +196,7 @@ export default defineComponent({
return {
state,
+ hasCustomApprovalFeature,
isTenantProject,
filteredDatabaseList,
excludedKeyList,
diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue
index d0c49fa8a5..3f35586ef3 100644
--- a/frontend/src/views/Home.vue
+++ b/frontend/src/views/Home.vue
@@ -14,6 +14,7 @@
</div>
<WaitingForMyApprovalIssueTable
+ v-if="hasCustomApprovalFeature"
:issue-find="{
statusList: ['OPEN'],
}"
@@ -195,6 +196,7 @@ import {
useEnvironmentStore,
useSubscriptionStore,
useOnboardingStateStore,
+ featureToRef,
} from "@/store";
import {
IssueTable,
@@ -226,6 +228,7 @@ const state = reactive<LocalState>({
});
const currentUser = useCurrentUser();
+const hasCustomApprovalFeature = featureToRef("bb.feature.custom-approval");
const onTrialingModalClose = () => {
state.showTrialStartModal = false;