| 21 | // This can be wrapped around existing route functions, |
| 22 | // to restrict the new teacher dashboard only for admins (using flag newTeacherDashboardActive) |
| 23 | const teacherProxyRoute = originalRoute => function () { |
| 24 | // if sessionStorage.getItem('newTeacherDashboardActive') == 'active' |
| 25 | return go('core/SingletonAppVueComponentView').apply(this, arguments) |
| 26 | } |
| 27 | // originalRoute.apply(@, arguments) |
| 28 | |
| 29 | const redirect = path => function () { |