mirror of
https://github.com/kevin-DL/full-stack-fastapi-postgresql.git
synced 2026-01-15 03:24:47 +00:00
🎉 First commit, from couchbase generator, basic changes
not tested / updated yet
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { MainState } from './state';
|
||||
|
||||
export const getters = {
|
||||
hasAdminAccess: (state: MainState) => {
|
||||
return (
|
||||
state.userProfile &&
|
||||
state.userProfile.admin_roles.includes('superuser'));
|
||||
},
|
||||
loginError: (state: MainState) => state.logInError,
|
||||
dashboardShowDrawer: (state: MainState) => state.dashboardShowDrawer,
|
||||
dashboardMiniDrawer: (state: MainState) => state.dashboardMiniDrawer,
|
||||
userProfile: (state: MainState) => state.userProfile,
|
||||
token: (state: MainState) => state.token,
|
||||
isLoggedIn: (state: MainState) => state.isLoggedIn,
|
||||
firstNotification: (state: MainState) => state.notifications.length > 0 && state.notifications[0],
|
||||
};
|
||||
Reference in New Issue
Block a user