61
61
:clearable =" true"
62
62
:accept =" ACCEPTED_FILE_TYPE"
63
63
density =" compact"
64
- v-model =" offeringFiles "
64
+ v-model =" offeringFile "
65
65
label =" Offering CSV file"
66
66
variant =" outlined"
67
67
data-cy =" fileUpload"
@@ -225,8 +225,8 @@ export default defineComponent({
225
225
const snackBar = useSnackBar ();
226
226
const validationProcessing = ref (false );
227
227
const creationProcessing = ref (false );
228
- // If multiple prop is undefined or false the component returns now a File object.
229
- const offeringFiles = ref <File >();
228
+ // If multiple prop is undefined or false for VFileInput the component returns now a File object.
229
+ const offeringFile = ref <File >();
230
230
// Possible errors and warnings received upon file upload.
231
231
const validationResults = ref ([] as OfferingsUploadBulkInsert []);
232
232
const uploadForm = ref ({} as VForm );
@@ -254,7 +254,7 @@ export default defineComponent({
254
254
}
255
255
const uploadResults =
256
256
await EducationProgramOfferingService .shared .offeringBulkInsert (
257
- offeringFiles .value as Blob ,
257
+ offeringFile .value as Blob ,
258
258
validationOnly ,
259
259
(progressEvent : AxiosProgressEvent ) => {
260
260
uploadProgress .value = progressEvent ;
@@ -317,7 +317,7 @@ export default defineComponent({
317
317
318
318
const resetForm = () => {
319
319
validationResults .value = [];
320
- offeringFiles .value = undefined ;
320
+ offeringFile .value = undefined ;
321
321
csvFileUploadKey .value ++ ;
322
322
};
323
323
@@ -331,7 +331,7 @@ export default defineComponent({
331
331
creationProcessing ,
332
332
DEFAULT_PAGE_LIMIT ,
333
333
PAGINATION_LIST ,
334
- offeringFiles ,
334
+ offeringFile ,
335
335
uploadFile ,
336
336
validationResults ,
337
337
fileValidationRules ,
0 commit comments