Skip to content
Snippets Groups Projects
Commit 8c9b5d59 authored by Angelina Filippova's avatar Angelina Filippova
Browse files

Replace depricated addRoutes with addRoute

parent 2d27962e
Branches
Tags
1 merge request!195Move Settings tab navigation to the main sidebar menu
Pipeline #34737 failed
......@@ -28,7 +28,7 @@ export const beforeEachRoute = (to, from, next) => {
store.dispatch('GetUserInfo').then(res => {
const roles = res.data.pleroma.is_admin ? ['admin'] : []
store.dispatch('GenerateRoutes', { roles }).then(() => {
router.addRoutes(store.getters.addRouters)
store.getters.addRouters.forEach(route => router.addRoute(route))
next({ ...to, replace: true })
})
}).catch((err) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment