Skip to content

Commit 14951ff

Browse files
authored
Ccfri 4572 fix ablity to submit incomplete AFS (#641)
* fix summary validation for AFS * remove some logs
1 parent 9f39150 commit 14951ff

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

frontend/src/components/summary/group/AFSSummary.vue

+5-8
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,8 @@ export default {
116116
return pcfUrlGuid(PATHS.CCFRI_AFS, this.programYearId, this.ccfriId);
117117
},
118118
},
119+
119120
watch: {
120-
isLoadingComplete: {
121-
handler: function (val) {
122-
if (val && !this.processing) {
123-
this.$refs.afsSummaryForm?.validate();
124-
this.$emit('isSummaryValid', this.formObj, this.isValidForm);
125-
}
126-
},
127-
},
128121
approvableFeeSchedules: {
129122
handler() {
130123
this.reloadAfs();
@@ -139,6 +132,10 @@ export default {
139132
if (this.isChangeRequest) {
140133
await this.getChangeDocs();
141134
}
135+
136+
//ccfri-4572-update validation for AFS Summary
137+
//Because we have to check if there are required uploaded documents, we use our custom validation instead of relying on Vuetify's form validation.
138+
this.$emit('isSummaryValid', this.formObj, this.isValidForm);
142139
},
143140
methods: {
144141
...mapActions(useSupportingDocumentUploadStore, ['saveUploadedDocuments', 'getDocuments']),

0 commit comments

Comments
 (0)