Refactor Administration entrypoint

We moved the administration item to the company switcher in the header
This commit is contained in:
Darko Gjorgjijoski
2026-04-04 01:36:28 +02:00
parent 29b3abd317
commit eb0a588164
17 changed files with 295 additions and 30 deletions

View File

@@ -26,7 +26,7 @@ router.beforeEach((to) => {
const { isAppLoaded } = globalStore
if (isAppLoaded && to.meta.requiresAuth && to.name !== 'no.company') {
if (!companyStore.selectedCompany && !(to.meta.isSuperAdmin && userStore.currentUser?.is_super_admin)) {
if (!companyStore.selectedCompany && !companyStore.isAdminMode && !(to.meta.isSuperAdmin && userStore.currentUser?.is_super_admin)) {
return { name: 'no.company' }
}
}