Skip to content

Commit

Permalink
Merge pull request #1629 from bcgov/fix/edx-2664
Browse files Browse the repository at this point in the history
EDX-664: displaying the submission due date on the submit data step f…
  • Loading branch information
mightycox authored Jun 13, 2024
2 parents d26f984 + b12a8d5 commit 2e5ebdc
Showing 1 changed file with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,10 @@
:key="step.step"
>
<v-stepper-item
v-if="step.step === 5"
:id="step.id"
:value="step.step"
:title="step.title"
:subtitle="submissionDueDate"
:editable="step.step < currentStep"
:complete="step.index < stepInCollection"
:color="'rgba(56, 89, 138, 1)'"
/>
<v-stepper-item
v-else
:id="step.id"
:value="step.step"
:title="step.title"
:subtitle="step.step === stepToShowSubmissionDueDate ? submissionDueDate : null"
:editable="step.step < currentStep"
:complete="step.index < stepInCollection"
:color="'rgba(56, 89, 138, 1)'"
Expand Down Expand Up @@ -305,6 +295,13 @@ export default {
return null;
}
return this.activeSchoolsMap.get(this.schoolID);
},
stepToShowSubmissionDueDate() {
if (this.schoolCollectionObject?.sdcDistrictCollectionID === null) {
//Step 7 for independent schools.
return 7;
}
return 5;
}
},
created() {
Expand Down

0 comments on commit 2e5ebdc

Please sign in to comment.