diff --git a/strr-host-pm-web/app/components/document/upload/Select.vue b/strr-host-pm-web/app/components/document/upload/Select.vue index 5e44b5c82..9d0487cf7 100644 --- a/strr-host-pm-web/app/components/document/upload/Select.vue +++ b/strr-host-pm-web/app/components/document/upload/Select.vue @@ -4,6 +4,7 @@ const props = defineProps({ isDisabled: { type: Boolean, default: false }, isRequired: { type: Boolean, default: false }, isInvalid: { type: Boolean, default: false }, + docOptions: { type: Array<{ label: string; value: DocumentUploadType }>, default: undefined }, label: { type: String, default: '' }, size: { type: String, default: 'lg' }, helpId: { type: String, default: undefined }, @@ -78,7 +79,7 @@ onChange((files) => { v-model="docStore.selectedDocType" size="lg" :color="'gray'" - :options="docStore.docTypeOptions" + :options="docOptions ?? docStore.docTypeOptions" :aria-label="label" :aria-required="isRequired" :aria-invalid="isInvalid" diff --git a/strr-host-pm-web/app/components/document/upload/Type.vue b/strr-host-pm-web/app/components/document/upload/Type.vue new file mode 100644 index 000000000..134ff1f8c --- /dev/null +++ b/strr-host-pm-web/app/components/document/upload/Type.vue @@ -0,0 +1,78 @@ + + + diff --git a/strr-host-pm-web/app/components/form/AddDocuments/index.vue b/strr-host-pm-web/app/components/form/AddDocuments/index.vue index 22a1d2576..bf746cfca 100644 --- a/strr-host-pm-web/app/components/form/AddDocuments/index.vue +++ b/strr-host-pm-web/app/components/form/AddDocuments/index.vue @@ -1,13 +1,21 @@