Skip to content

Commit 3b34cc4

Browse files
Merge pull request #2063 from bcgov/fix/EDX-3043-3057
Changes to not allow clicking of tabs after district submission.
2 parents c94737c + 8269f17 commit 3b34cc4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

frontend/src/components/sdcCollection/sdcDistrictCollection/SDCDistrictCollectionView.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@
176176
:is-step-complete="isStepComplete"
177177
:is-collection-active="isSdcDistrictCollectionActive"
178178
@next="next"
179+
@refresh="refresh"
179180
/>
180181
</v-stepper-window-item>
181182
<v-stepper-window-item
@@ -247,6 +248,7 @@
247248
:is-step-complete="isStepComplete"
248249
:is-collection-active="isSdcDistrictCollectionActive"
249250
@next="next"
251+
@refresh="refresh"
250252
/>
251253
</v-stepper-window-item>
252254
</v-stepper-window>
@@ -392,6 +394,9 @@ export default defineComponent({
392394
this.refreshStore(true);
393395
this.$refs.stepper.next();
394396
},
397+
refresh() {
398+
this.refreshStore(true);
399+
},
395400
backToCollectionDashboard() {
396401
this.$router.push({name: 'sdcDistrictCollectionSummary', params: {districtID: this.districtID}});
397402
},

frontend/src/components/sdcCollection/sdcDistrictCollection/StepFiveSubmitToMinistry.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export default {
103103
required: true
104104
}
105105
},
106-
emits: ['previous', 'next'],
106+
emits: ['previous', 'next', 'refresh'],
107107
data() {
108108
return {
109109
afterSubmittedStatuses: ['P_DUP_POST', 'P_DUP_VRFD', 'COMPLETED'],
@@ -147,14 +147,15 @@ export default {
147147
};
148148
ApiService.apiAxios.put(`${ApiRoutes.sdc.SDC_DISTRICT_COLLECTION}/${this.$route.params.sdcDistrictCollectionID}`, updateCollection)
149149
.then(() => {
150-
this.isSubmitted = true;
150+
this.isSubmitted = true;
151151
})
152152
.catch(error => {
153153
console.error(error);
154154
setFailureAlert(error?.response?.data?.message ? error?.response?.data?.message : 'An error occurred while updating status. Please try again later.');
155155
})
156156
.finally(() => {
157157
this.isLoading = false;
158+
this.$emit('refresh');
158159
});
159160
},
160161
next() {

0 commit comments

Comments
 (0)