Skip to content

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

chore: check enableSample for quick start (#16791)

boojack3322efe777f5
diff --git a/frontend/src/layouts/BodyLayout.vue b/frontend/src/layouts/BodyLayout.vue
index 003c67280e..e6363ff50b 100644
--- a/frontend/src/layouts/BodyLayout.vue
+++ b/frontend/src/layouts/BodyLayout.vue
@@ -118,7 +118,7 @@
</div>
</div>
- <Quickstart />
+ <Quickstart v-if="actuatorStore.info?.enableSample" />
</div>
<ReleaseRemindModal
diff --git a/frontend/src/layouts/IssuesLayout.vue b/frontend/src/layouts/IssuesLayout.vue
index 78a18d1c8d..4022490e34 100644
--- a/frontend/src/layouts/IssuesLayout.vue
+++ b/frontend/src/layouts/IssuesLayout.vue
@@ -28,16 +28,19 @@
</div>
</div>
- <Quickstart />
+ <Quickstart v-if="actuatorStore.info?.enableSample" />
</div>
</template>
<script lang="ts" setup>
import { ref } from "vue";
+import { useActuatorV1Store } from "@/store";
import DashboardHeader from "@/views/DashboardHeader.vue";
import Quickstart from "../components/Quickstart.vue";
import { provideBodyLayoutContext } from "./common";
+const actuatorStore = useActuatorV1Store();
+
const mainContainerRef = ref<HTMLDivElement>();
const { mainContainerClasses } = provideBodyLayoutContext({
diff --git a/frontend/src/views/sql-editor/SQLEditorHomePage.vue b/frontend/src/views/sql-editor/SQLEditorHomePage.vue
index 1ed9b58d16..d0461b94ba 100644
--- a/frontend/src/views/sql-editor/SQLEditorHomePage.vue
+++ b/frontend/src/views/sql-editor/SQLEditorHomePage.vue
@@ -44,7 +44,7 @@
</Pane>
</Splitpanes>
- <Quickstart />
+ <Quickstart v-if="actuatorStore.info?.enableSample" />
<Drawer v-model:show="showSheetPanel">
<DrawerContent :title="$t('sql-editor.sheet.self')">
@@ -79,6 +79,7 @@ import {
useDatabaseV1Store,
useSQLEditorTabStore,
useSQLEditorStore,
+ useActuatorV1Store,
} from "@/store";
import { extractProjectResourceName } from "@/utils";
import AsidePanel from "./AsidePanel";
@@ -99,6 +100,7 @@ const state = reactive<LocalState>({
});
const router = useRouter();
+const actuatorStore = useActuatorV1Store();
const databaseStore = useDatabaseV1Store();
const tabStore = useSQLEditorTabStore();
const editorStore = useSQLEditorStore();