Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/bcgov/EDUC-EDX
Browse files Browse the repository at this point in the history
  • Loading branch information
arcshiftsolutions committed Jul 29, 2023
2 parents 1fd0455 + 50bde89 commit fb89715
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion frontend/src/components/util/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
class="menuRow"
>
<router-link
:to="{ name: item.link }"
:to="{ path: item.link }"
:target="item.newTab ? '_blank' : '_self'"

class="router"
>
<v-list-item>
Expand Down Expand Up @@ -204,6 +205,36 @@ export default {
link: 'inbox',
authorized: this.hasRequiredPermission(PERMISSION.SECURE_EXCHANGE),
},
{
title: PAGE_TITLES.SCHOOL_CONTACTS,
link: 'schoolContacts/'+ this.userInfo.activeInstituteIdentifier,
authorized: this.userInfo.activeInstituteType === 'SCHOOL',
},
{
title: PAGE_TITLES.SCHOOL_DETAILS,
link: 'schoolDetails/'+ this.userInfo.activeInstituteIdentifier,
authorized: this.userInfo.activeInstituteType === 'SCHOOL',
},
{
title: PAGE_TITLES.DATA_COLLECTION,
link: 'open-collection-summary/'+ this.userInfo.activeInstituteIdentifier,
authorized: this.userInfo.activeInstituteType === 'SCHOOL',
},
{
title: PAGE_TITLES.DISTRICT_CONTACTS,
link: 'districtContacts/'+ this.userInfo.activeInstituteIdentifier,
authorized: this.userInfo.activeInstituteType === 'DISTRICT',
},
{
title: PAGE_TITLES.DISTRICT_DETAILS,
link: 'districtDetails/'+ this.userInfo.activeInstituteIdentifier,
authorized: this.userInfo.activeInstituteType === 'DISTRICT',
},
{
title: PAGE_TITLES.SCHOOLS,
link: 'schools',
authorized: this.userInfo.activeInstituteType === 'DISTRICT',
},
{
title: PAGE_TITLES.ADMINISTRATION,
authorized: this.hasRequiredPermission(PERMISSION.EDX_USER_SCHOOL_ADMIN) || this.hasRequiredPermission(PERMISSION.EDX_USER_DISTRICT_ADMIN),
Expand Down

0 comments on commit fb89715

Please sign in to comment.