Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Change “Switch” field type to “Boolean”
天舟e96eeb115565
diff --git a/frontend/src/plugins/types.ts b/frontend/src/plugins/types.tsindex ae41349e8a..3eee30d4de 100644--- a/frontend/src/plugins/types.ts+++ b/frontend/src/plugins/types.ts@@ -28,11 +28,11 @@ export enum TaskBuiltinFieldId {export const CUSTOM_FIELD_ID_BEGIN = "100";export type TaskFieldType =+ | "Boolean"| "String"| "Environment"| "Database"- | "NewDatabase"- | "Switch";+ | "NewDatabase";export type TaskFieldReferenceProvider = {title: string;diff --git a/frontend/src/views/TaskDetail.vue b/frontend/src/views/TaskDetail.vueindex b0b85f6d47..9fbb9dcce9 100644--- a/frontend/src/views/TaskDetail.vue+++ b/frontend/src/views/TaskDetail.vue@@ -622,7 +622,7 @@ export default {(item) => item.category == "INPUT")) {if (- field.type != "Switch" && // Switch is boolean value which always presents+ field.type != "Boolean" && // Switch is boolean value which always is presentfield.required &&field.isEmpty(state.task.payload[field.id])) {diff --git a/frontend/src/views/TaskSidebar.vue b/frontend/src/views/TaskSidebar.vueindex dc337ed503..01d7f95281 100644--- a/frontend/src/views/TaskSidebar.vue+++ b/frontend/src/views/TaskSidebar.vue@@ -102,7 +102,7 @@/></div></template>- <template v-else-if="field.type == 'Switch'">+ <template v-else-if="field.type == 'Boolean'"><h2 class="flex items-center textlabel w-36">{{ field.name }}<span v-if="field.required" class="text-red-600">*</span>