Skip to content

Commit 517fc71

Browse files
authored
Merge pull request #2351 from bcgov/feature/EAC-132
SCH|DIS|MIN - Consolidate Gradation Menu Items
2 parents d563a32 + 9a67cd7 commit 517fc71

File tree

1 file changed

+26
-14
lines changed

1 file changed

+26
-14
lines changed

frontend/src/components/util/NavBar.vue

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,19 @@ export default {
249249
},
250250
{
251251
title: PAGE_TITLES.GRADUATION,
252-
link: { name: 'graduationSchoolTabs', params: {schoolID: this.userInfo.activeInstituteIdentifier}},
253-
authorized: this.hasRequiredPermission(PERMISSION.GRAD_SCH_UPLOAD) && this.userInfo.activeInstituteType === 'SCHOOL' && !this.disableGdcFunctionality,
254-
},
255-
{
256-
title: PAGE_TITLES.ASSESSMENT,
257-
link: {name: 'school-assessment-session-detail'},
258-
authorized: this.hasRequiredPermission(PERMISSION.EAS_SCH_EDIT) && this.userInfo.activeInstituteType === 'SCHOOL' && !this.disableAssessmentFunctionality,
252+
authorized: (this.hasRequiredPermission(PERMISSION.GRAD_SCH_UPLOAD) && !this.disableGdcFunctionality) || (this.hasRequiredPermission(PERMISSION.EAS_SCH_EDIT) && !this.disableAssessmentFunctionality) && this.userInfo.activeInstituteType === 'SCHOOL',
253+
items: [
254+
{
255+
title: PAGE_TITLES.GRAD_DATA_COLLECTION,
256+
link: { name: 'graduationSchoolTabs', params: {schoolID: this.userInfo.activeInstituteIdentifier}},
257+
authorized: this.hasRequiredPermission(PERMISSION.GRAD_SCH_UPLOAD) && this.userInfo.activeInstituteType === 'SCHOOL' && !this.disableGdcFunctionality,
258+
},
259+
{
260+
title: PAGE_TITLES.ASSESSMENT,
261+
link: {name: 'school-assessment-session-detail'},
262+
authorized: this.hasRequiredPermission(PERMISSION.EAS_SCH_EDIT) && this.userInfo.activeInstituteType === 'SCHOOL' && !this.disableAssessmentFunctionality,
263+
}
264+
]
259265
},
260266
{
261267
title: PAGE_TITLES.DISTRICT_DETAILS,
@@ -279,13 +285,19 @@ export default {
279285
},
280286
{
281287
title: PAGE_TITLES.GRADUATION,
282-
link: { name: 'graduationDistrictTabs', params: {districtID: this.userInfo.activeInstituteIdentifier}},
283-
authorized: this.hasRequiredPermission(PERMISSION.GRAD_DIS_UPLOAD) && this.userInfo.activeInstituteType === 'DISTRICT' && !this.disableGdcFunctionality,
284-
},
285-
{
286-
title: PAGE_TITLES.ASSESSMENT,
287-
link: {name: 'district-assessment-session-detail'},
288-
authorized: this.hasRequiredPermission(PERMISSION.EAS_DIS_EDIT) && this.userInfo.activeInstituteType === 'DISTRICT' && !this.disableAssessmentFunctionality,
288+
authorized: (this.hasRequiredPermission(PERMISSION.GRAD_DIS_UPLOAD) && !this.disableGdcFunctionality) || (this.hasRequiredPermission(PERMISSION.EAS_DIS_EDIT) && !this.disableAssessmentFunctionality) && this.userInfo.activeInstituteType === 'DISTRICT',
289+
items: [
290+
{
291+
title: PAGE_TITLES.GRAD_DATA_COLLECTION,
292+
link: { name: 'graduationDistrictTabs', params: {districtID: this.userInfo.activeInstituteIdentifier}},
293+
authorized: this.hasRequiredPermission(PERMISSION.GRAD_DIS_UPLOAD) && this.userInfo.activeInstituteType === 'DISTRICT' && !this.disableGdcFunctionality,
294+
},
295+
{
296+
title: PAGE_TITLES.ASSESSMENT,
297+
link: {name: 'district-assessment-session-detail'},
298+
authorized: this.hasRequiredPermission(PERMISSION.EAS_DIS_EDIT) && this.userInfo.activeInstituteType === 'DISTRICT' && !this.disableAssessmentFunctionality,
299+
}
300+
]
289301
},
290302
{
291303
title: PAGE_TITLES.ADMINISTRATION,

0 commit comments

Comments
 (0)