From 1d5a8fc065aeaa9e4154f22da10eb897aca59ec2 Mon Sep 17 00:00:00 2001 From: Wanjin Noh Date: Fri, 29 Nov 2024 18:25:51 +0900 Subject: [PATCH] feat(task-fields): add UnknownTaskField component and update validators Signed-off-by: Wanjin Noh --- .../task-fields-form/TaskFieldsForm.vue | 10 +++++---- .../composables/use-task-field-validation.ts | 2 +- .../field-templates/UnknownTaskField.vue | 21 +++++++++++++++++++ 3 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 apps/web/src/services/ops-flow/task-fields-form/field-templates/UnknownTaskField.vue diff --git a/apps/web/src/services/ops-flow/task-fields-form/TaskFieldsForm.vue b/apps/web/src/services/ops-flow/task-fields-form/TaskFieldsForm.vue index 0fbd1c39b2..40693d579a 100644 --- a/apps/web/src/services/ops-flow/task-fields-form/TaskFieldsForm.vue +++ b/apps/web/src/services/ops-flow/task-fields-form/TaskFieldsForm.vue @@ -13,11 +13,13 @@ const COMPONENT_MAP: Partial import('@/services/ops-flow/task-fields-form/field-templates/DropdownTaskField.vue')), DATE: defineAsyncComponent(() => import('@/services/ops-flow/task-fields-form/field-templates/DateTaskField.vue')), USER: defineAsyncComponent(() => import('@/services/ops-flow/task-fields-form/field-templates/UserTaskField.vue')), - ASSET: defineAsyncComponent(() => import('@/services/ops-flow/task-fields-form/field-templates/AssetTaskField.vue')), PROJECT: defineAsyncComponent(() => import('@/services/ops-flow/task-fields-form/field-templates/ProjectTaskField.vue')), - PROVIDER: defineAsyncComponent(() => import('@/services/ops-flow/task-fields-form/field-templates/ProviderTaskField.vue')), - SERVICE_ACCOUNT: defineAsyncComponent(() => import('@/services/ops-flow/task-fields-form/field-templates/ServiceAccountTaskField.vue')), + // ASSET: defineAsyncComponent(() => import('@/services/ops-flow/task-fields-form/field-templates/AssetTaskField.vue')), + // PROVIDER: defineAsyncComponent(() => import('@/services/ops-flow/task-fields-form/field-templates/ProviderTaskField.vue')), + // SERVICE_ACCOUNT: defineAsyncComponent(() => import('@/services/ops-flow/task-fields-form/field-templates/ServiceAccountTaskField.vue')), }; +const UnknownTaskField = defineAsyncComponent(() => import('@/services/ops-flow/task-fields-form/field-templates/UnknownTaskField.vue')); + const fields = ref([ { field_id: 'field_1', @@ -113,7 +115,7 @@ const data = ref>({