Skip to content

Commit 6fcb286

Browse files
Merge pull request #1898 from bcgov/fix/EDX-2865
UX changes for EDX-2865
2 parents 2fab33e + fcdb498 commit 6fcb286

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

frontend/src/components/sdcCollection/SDCCollectionSummary.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export default {
227227
},
228228
totalStepsInCollection() {
229229
if(this.isSchoolCollection) {
230-
return this.SDC_STEPS_SCHOOL_CALC.length
230+
return this.SDC_STEPS_SCHOOL_CALC.length;
231231
} else {
232232
return this.SDC_STEPS_DISTRICT_CALC.length;
233233
}

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ import {authStore} from '../../../store/modules/auth';
299299
import StepSevenFinalSubmission from './StepSevenFinalSubmission.vue';
300300
import ApiService from '../../../common/apiService';
301301
import {ApiRoutes} from '../../../utils/constants';
302+
import {LocalDate, LocalDateTime} from '@js-joda/core';
302303
303304
export default defineComponent({
304305
name: 'SDCDistrictCollectionView',
@@ -331,7 +332,7 @@ export default defineComponent({
331332
computed: {
332333
...mapState(sdcCollectionStore, ['currentCollectionTypeCode', 'districtCollection','currentCollectionYear']),
333334
...mapState(wsNotifications, ['notification']),
334-
...mapState(appStore, ['activeSchoolsMap','activeDistrictsMap']),
335+
...mapState(appStore, ['activeSchoolsMap','activeDistrictsMap', 'config']),
335336
...mapState(authStore, ['userInfo']),
336337
stepInCollection() {
337338
return this.getIndexOfSDCCollectionByStatusCode(this.districtCollection?.sdcDistrictCollectionStatusCode);
@@ -412,10 +413,11 @@ export default defineComponent({
412413
async getActiveSdcDistrictCollection() {
413414
await ApiService.apiAxios.get(ApiRoutes.sdc.SDC_COLLECTION_BY_DISTRICT_ID + '/' + this.districtID)
414415
.then(response => {
416+
const isMigratedCollection = response.data.createDate ? LocalDateTime.parse(response.data.createDate).toLocalDate().isBefore(LocalDate.parse(this.config.SLD_MIGRATION_DATE)) : false;
415417
this.setCurrentCollectionSubmissionDueDate(response.data.submissionDueDate);
416418
this.setCurrentCollectionResolveDupDueDate(response.data.duplicationResolutionDueDate);
417419
this.setCurrentCollectionSignOffDueDate(response.data.signOffDueDate);
418-
this.isSdcDistrictCollectionActive = response.data.sdcDistrictCollectionID === this.districtCollectionObject?.sdcDistrictCollectionID;
420+
this.isSdcDistrictCollectionActive = response.data.sdcDistrictCollectionID === this.districtCollectionObject?.sdcDistrictCollectionID && !isMigratedCollection;
419421
420422
this.submissionDueDate = 'Due: ' + formatSubmissionDate(sdcCollectionStore().currentCollectionSubmissionDueDate);
421423
this.duplicationResolutionDueDate = 'Due: ' + formatSubmissionDate(sdcCollectionStore().currentCollectionResolveDupDueDate);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class="justify-start"
1212
type="info"
1313
variant="tonal"
14-
text="Thank you for completing the 1701 collection process for your district. It is now ready for your final review and sign-off. Please use the button below to provide your sign-off for all programs. "
14+
text="Thank you for completing the 1701 collection process for your district. It is now ready for your final review and sign-off. Please use the Signatures tab for signing off."
1515
/>
1616
</v-col>
1717
</v-row>

frontend/src/components/sdcCollection/sdcDistrictCollection/stepThreeVerifyData/StepThreeVerifyData.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
v-if="isFinalSignOff && !isMigratedCollection"
3636
key="SignOff"
3737
value="SignOff"
38-
class="sign-off-tab"
38+
class="divider"
3939
>
4040
Signatures
4141
</v-tab>

0 commit comments

Comments
 (0)