From 7de319c7863d2ff38448f8961eb21105a78cb93c Mon Sep 17 00:00:00 2001 From: sajjad Date: Thu, 9 Dec 2021 13:13:35 +0330 Subject: [PATCH] fix --- src/components/Global/Section/SideBar.vue | 8 ++++++-- src/router/path.js | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/Global/Section/SideBar.vue b/src/components/Global/Section/SideBar.vue index b038816..61f9910 100644 --- a/src/components/Global/Section/SideBar.vue +++ b/src/components/Global/Section/SideBar.vue @@ -99,7 +99,9 @@ export default { text: "workouts", link: "workouts", active: - this.$route.name === "workouts" || this.$route.name === "addWorkout"|| this.$route.name === "editWorkout" + this.$route.name === "workouts" || + this.$route.name === "addWorkout" || + this.$route.name === "editWorkout", }, ]) : this.role === "trainer" @@ -123,7 +125,9 @@ export default { active: this.$route.name === "programs" || this.$route.name === "addProgram" || - this.$route.name === "editProgram", + this.$route.name === "editProgram" || + this.$route.name === "programSeries" || + this.$route.name === "workoutsSeries", }, { id: 4, diff --git a/src/router/path.js b/src/router/path.js index 8c0e2cb..3af5f98 100644 --- a/src/router/path.js +++ b/src/router/path.js @@ -99,7 +99,7 @@ export default [ path: '/trainee-programs', view: 'TraineePrograms', name: 'traineePrograms', - + meta: { auth: true, roles: ["trainee"] } }, { path: '/products',