Skip to content

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

fix: upgrade subscription banner feature items (#6142)

boojack2b185c8dbd3d
diff --git a/frontend/src/store/modules/v1/setting.ts b/frontend/src/store/modules/v1/setting.ts
index 4ef69a07f8..2b6dc74026 100644
--- a/frontend/src/store/modules/v1/setting.ts
+++ b/frontend/src/store/modules/v1/setting.ts
@@ -66,9 +66,6 @@ export const useSettingV1Store = defineStore("setting_v1", {
return resp;
},
async updateWorkspaceProfile(payload: object): Promise<void> {
- console.log("updateWorkspaceProfile");
- console.log(payload);
- console.log(this.workspaceProfileSetting);
if (!this.workspaceProfileSetting) {
return;
}
@@ -77,6 +74,7 @@ export const useSettingV1Store = defineStore("setting_v1", {
externalUrl: this.workspaceProfileSetting.externalUrl,
require2fa: this.workspaceProfileSetting.require2fa,
outboundIpList: this.workspaceProfileSetting.outboundIpList,
+ gitopsWebhookUrl: this.workspaceProfileSetting.gitopsWebhookUrl,
...payload,
};
await this.upsertSetting({
diff --git a/frontend/src/views/BannerUpgradeSubscription.vue b/frontend/src/views/BannerUpgradeSubscription.vue
index 038ca69290..2c0e8a468c 100644
--- a/frontend/src/views/BannerUpgradeSubscription.vue
+++ b/frontend/src/views/BannerUpgradeSubscription.vue
@@ -11,7 +11,7 @@
<i18n-t tag="p" keypath="subscription.overuse-warning">
<template #neededPlan>
<span
- class="underline cursor-pointer hover:opacity-80"
+ class="underline cursor-pointer hover:opacity-60"
@click="state.showModal = true"
>{{ neededPlan }}</span
>
@@ -93,7 +93,10 @@ const instanceStore = useInstanceStore();
const environmentV1Store = useEnvironmentV1Store();
const showBanner = computed(() => {
- return true;
+ return (
+ subscriptionStore.currentPlan !== PlanType.ENTERPRISE &&
+ overusedFeatureList.value.length > 0
+ );
});
const neededPlan = computed(() => {
@@ -140,7 +143,7 @@ const overusedEnterprisePlanFeatureList = computed(() => {
const openAIKeySetting = settingV1Store.getSettingByName(
"bb.plugin.openai.key"
);
- if (openAIKeySetting && openAIKeySetting.value) {
+ if (openAIKeySetting && openAIKeySetting.value?.stringValue) {
list.push("bb.feature.plugin.openai");
}
for (const environment of environmentV1Store.environmentList) {