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: remove format on save checkbox from plan editor (#17426)
boojackba9a0c115c45
diff --git a/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue b/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vueindex be5f103a8b..c07206975d 100644--- a/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue+++ b/frontend/src/components/Plan/components/StatementSection/EditorView/EditorView.vue@@ -14,7 +14,6 @@</div><div class="flex items-center justify-end gap-x-2"><template v-if="isCreating">- <FormatOnSaveCheckbox /><SQLUploadButtonsize="small":loading="state.isUploadingFile"@@ -56,7 +55,6 @@</template></template><template v-else>- <FormatOnSaveCheckbox /><SQLUploadButtonsize="small":loading="state.isUploadingFile"@@ -208,7 +206,6 @@ import {import { useSelectedSpec } from "../../SpecDetailView/context";import { useSQLAdviceMarkers } from "../useSQLAdviceMarkers";import { useSpecSheet } from "../useSpecSheet";-import FormatOnSaveCheckbox from "./FormatOnSaveCheckbox.vue";type LocalState = {statement: string;diff --git a/frontend/src/components/Plan/components/StatementSection/EditorView/FormatOnSaveCheckbox.vue b/frontend/src/components/Plan/components/StatementSection/EditorView/FormatOnSaveCheckbox.vuedeleted file mode 100644index d7dd7ca391..0000000000--- a/frontend/src/components/Plan/components/StatementSection/EditorView/FormatOnSaveCheckbox.vue+++ /dev/null@@ -1,40 +0,0 @@-<template>- <NCheckbox- v-if="allowFormatOnSave"- :checked="formatOnSave"- size="small"- @update:checked="updateFormatOnSave"- >- {{ $t("issue.format-on-save") }}- </NCheckbox>-</template>--<script setup lang="ts">-import { NCheckbox } from "naive-ui";-import { computed } from "vue";-import { databaseForSpec } from "@/components/Plan/logic";-import { useUIStateStore } from "@/store";-import { useCurrentProjectV1 } from "@/store";-import { useInstanceV1EditorLanguage } from "@/utils";-import { useSelectedSpec } from "../../SpecDetailView/context";--const { project } = useCurrentProjectV1();-const selectedSpec = useSelectedSpec();-const uiStateStore = useUIStateStore();--const database = computed(() => {- return databaseForSpec(project.value, selectedSpec.value);-});--const language = useInstanceV1EditorLanguage(- computed(() => database.value.instanceResource)-);--const allowFormatOnSave = computed(() => language.value === "sql");--const formatOnSave = computed(() => uiStateStore.editorFormatStatementOnSave);--const updateFormatOnSave = (value: boolean) => {- uiStateStore.setEditorFormatStatementOnSave(value);-};-</script>