Skip to content

Commit

Permalink
Merge pull request #1815 from bcgov/fix/district-collection-steps
Browse files Browse the repository at this point in the history
Fixes tab display issue for district collections
  • Loading branch information
eckermania authored Aug 7, 2024
2 parents dead9b2 + e596d58 commit 5328ded
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
/>
</template>
</v-stepper-header>
<v-stepper-window v-if="SDC_STEPS_DISTRICT() === 'SDC_STEPS_DISTRICT'">
<v-stepper-window v-if="!isSummerCollection">
<v-stepper-window-item
:value="1"
transition="false"
Expand Down Expand Up @@ -322,7 +322,8 @@ export default defineComponent({
wsNotificationText: '',
schoolsMap: null,
submittedStatuses: ['SUBMITTED', 'P_DUP_POST', 'P_DUP_VRFD', 'COMPLETED'],
isSdcDistrictCollectionActive: false
isSdcDistrictCollectionActive: false,
isSummerCollection: false
};
},
computed: {
Expand Down Expand Up @@ -364,6 +365,7 @@ export default defineComponent({
this.districtCollectionObject = this.districtCollection;
this.districtID = this.districtCollection?.districtID;
this.currentStep = this.getStepOfSDCCollectionByStatusCode(this.districtCollection?.sdcDistrictCollectionStatusCode);
this.isSummerCollection = this.districtCollectionObject?.collectionTypeCode === 'JULY';
await this.getActiveSdcDistrictCollection();
})
.finally(() => {
Expand All @@ -373,7 +375,7 @@ export default defineComponent({
methods: {
...mapActions(sdcCollectionStore, ['setCurrentCollectionSubmissionDueDate', 'setCurrentCollectionResolveDupDueDate', 'setCurrentCollectionSignOffDueDate']),
SDC_STEPS_DISTRICT() {
return this.districtCollectionObject?.collectionTypeCode === 'JULY' ? SDC_STEPS_SUMMER_DISTRICT : SDC_STEPS_DISTRICT;
return this.isSummerCollection ? SDC_STEPS_SUMMER_DISTRICT : SDC_STEPS_DISTRICT;
},
next() {
this.refreshStore(true);
Expand Down

0 comments on commit 5328ded

Please sign in to comment.