Skip to content

Commit 391fb3d

Browse files
authored
Merge pull request #2316 from bcgov/fix/ChalRepFixes
Add challenge_reports perm check, change displayed school year, and c…
2 parents 648fcd0 + 0926645 commit 391fb3d

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

frontend/src/components/challengeReports/ChallengeReports.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
:style="{ width: tooltipWidth }"
3333
>
3434
<div v-if="activePeriod.challengeReportsSessionStatus === REPORT_STATUS_NOT_YET_AVAILABLE">
35-
The ministry has not yet released the preliminary data on course challenges. Your district’s superintendent will be emailed when data is available.
35+
The ministry has not yet released the preliminary data on course challenges. Your district’s Enrolment Data Collection Administrator will be emailed when data is available.
3636
</div>
3737
<div v-else-if="activePeriod.challengeReportsSessionStatus === REPORT_STATUS_PRELIMINARY">
3838
Data corrections can be made through <strong>GRAD File Upload</strong> or a <a
@@ -42,7 +42,7 @@
4242
>GRAD Change Form</a>.
4343
Changes submitted before the due date will be reflected in the report data.
4444
Changes submitted past the due date will not be reflected in the report and are not eligible for funding.
45-
Your district’s superintendent will be emailed when the final data is available.
45+
Your district’s Enrolment Data Collection Administrator will be emailed when the final data is available.
4646
</div>
4747
<div v-else-if="activePeriod.challengeReportsSessionStatus === REPORT_STATUS_FINAL">
4848
The data reported is final. It reflects the course challenges that will be funded for your district.
@@ -224,9 +224,9 @@ export default {
224224
const currentMonth = currentDate.getMonth();
225225
226226
if (currentMonth > 5) {
227-
this.startingYear = currentYear;
228-
} else {
229227
this.startingYear = currentYear - 1;
228+
} else {
229+
this.startingYear = currentYear - 2;
230230
}
231231
this.endingYear = this.startingYear + 1;
232232
},

frontend/src/components/util/NavBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ export default {
293293
{
294294
title: PAGE_TITLES.CHALLENGE_REPORTS,
295295
link: { name: 'challengeReports', params: {districtID: this.userInfo.activeInstituteIdentifier}},
296-
authorized: this.hasRequiredPermission(PERMISSION.SUPERINT)
296+
authorized: this.hasRequiredPermission(PERMISSION.CHALLENGE_REPORTS)
297297
}
298298
];
299299
this.hasAnyItems = this.items.filter(obj => obj.authorized).length > 0;

frontend/src/utils/constants/Permission.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@ export const PERMISSION = Object.freeze(
4040

4141
GRAD_DIS_RPT_VIEW: 'GRAD_DIS_RPT_VIEW',
4242

43-
SUPERINT: 'SUPERINT'
43+
SUPERINT: 'SUPERINT',
4444

45+
CHALLENGE_REPORTS: 'CHALLENGE_REPORTS',
4546
}
4647
);
4748

0 commit comments

Comments
 (0)