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: never show the Help in live demo (#2064)
ZhengXaa1ed670e88c
diff --git a/frontend/src/store/modules/help.ts b/frontend/src/store/modules/help.tsindex 2ea9b1035c..e27c312dbe 100644--- a/frontend/src/store/modules/help.ts+++ b/frontend/src/store/modules/help.ts@@ -1,4 +1,5 @@import { defineStore } from "pinia";+import { useActuatorStore } from "@/store";export const useHelpStore = defineStore("help", {state: (): {@@ -12,8 +13,16 @@ export const useHelpStore = defineStore("help", {},actions: {showHelp(id: string, openByDefault: boolean): void {- this.currHelpId = id;- this.openByDefault = openByDefault;+ const actuatorStore = useActuatorStore();+ const demoName = actuatorStore.serverInfo?.demoName;+ const invalidFeatureDemoNameList = ["dev", "prod"];+ const isFeatureDemo =+ demoName && !invalidFeatureDemoNameList.includes(demoName);+ if (!isFeatureDemo) {+ // only show help when not in live demo+ this.currHelpId = id;+ this.openByDefault = openByDefault;+ }},exitHelp() {this.currHelpId = "";