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: fix setting button status & optimize setting update code (#6341)
ecmadao71b9382b57ba
diff --git a/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue b/frontend/src/components/GeneralSetting/AIAugmentationSetting.vueindex 18945a4890..5ae12aad2c 100644--- a/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue+++ b/frontend/src/components/GeneralSetting/AIAugmentationSetting.vue@@ -158,7 +158,7 @@ const allowEdit = computed((): boolean => {const allowSave = computed((): boolean => {const openAIKeyUpdated =state.openAIKey !== maskKey(openAIKeySetting?.value?.stringValue) ||- !state.openAIKey.includes("***");+ (state.openAIKey && !state.openAIKey.includes("***"));return (allowEdit.value &&(openAIKeyUpdated ||diff --git a/frontend/src/store/modules/v1/setting.ts b/frontend/src/store/modules/v1/setting.tsindex d2bb1e33a5..e8dd65d3ef 100644--- a/frontend/src/store/modules/v1/setting.ts+++ b/frontend/src/store/modules/v1/setting.ts@@ -65,16 +65,14 @@ export const useSettingV1Store = defineStore("setting_v1", {this.settingMapByName.set(resp.name, resp);return resp;},- async updateWorkspaceProfile(payload: object): Promise<void> {+ async updateWorkspaceProfile(+ payload: Partial<WorkspaceProfileSetting>+ ): Promise<void> {if (!this.workspaceProfileSetting) {return;}const profileSetting: WorkspaceProfileSetting = {- disallowSignup: this.workspaceProfileSetting.disallowSignup,- externalUrl: this.workspaceProfileSetting.externalUrl,- require2fa: this.workspaceProfileSetting.require2fa,- outboundIpList: this.workspaceProfileSetting.outboundIpList,- gitopsWebhookUrl: this.workspaceProfileSetting.gitopsWebhookUrl,+ ...this.workspaceProfileSetting,...payload,};await this.upsertSetting({@@ -83,7 +81,7 @@ export const useSettingV1Store = defineStore("setting_v1", {workspaceProfileSettingValue: profileSetting,},});- // Fetch the latest server info.+ // Fetch the latest server info to refresh the disallow signup flag.await useActuatorV1Store().fetchServerInfo();},},