diff --git a/src/components/TitleBar.vue b/src/components/TitleBar.vue
index 7a548df..dcf4c70 100644
--- a/src/components/TitleBar.vue
+++ b/src/components/TitleBar.vue
@@ -1,55 +1,84 @@
-
+
Flaschengeist
-
- {{attach_money}}
+
+
+ {{ back }}
+
-
- {{gastro}}
+
+ {{ attach_money }}
-
- {{local_bar}}
+
+ {{ gastro }}
-
- {{person}}
+
+ {{ local_bar }}
-
- {{list}}
+
+ {{ person }}
+
+
+ {{ list }}
-
+
diff --git a/src/components/vorstand/UserManager.vue b/src/components/vorstand/UserManager.vue
index 5704f4b..ae4fc64 100644
--- a/src/components/vorstand/UserManager.vue
+++ b/src/components/vorstand/UserManager.vue
@@ -71,6 +71,7 @@
:items="users"
:search="search"
:loading="usersLoading || statusLoading"
+ :items-per-page="100"
>
@@ -286,9 +287,10 @@ export default {
}),
computeStatus() {
return id => {
- return this.status.find(a => {
+ let status = this.status.find(a => {
return a.id === id
- }).name
+ })
+ return status ? status.name : null
}
},
allVotings() {
diff --git a/src/router/index.js b/src/router/index.js
index a088eda..678891c 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -169,36 +169,36 @@ const router = new VueRouter({
router.beforeEach((to, from, next) => {
store.dispatch('fetchAccessToken')
- if (to.fullPath.includes('/main')) {
- if (to.fullPath.includes('/main/finanzer')) {
+ if (to.name === 'main') {
+ if (to.name ==='finanzer' || to.name === 'overview' || to.name === 'activeUser') {
if (!store.state.login.user.group.includes('moneymaster')) {
- next('/login')
+ next({name: 'login'})
}
}
- if (to.fullPath.includes('/main/bar')) {
+ if (to.name === 'bar' || to.name === 'geruecht') {
if (!store.state.login.user.group.includes('bar')) {
- next('/login')
+ next({name: 'login'})
}
}
- if (to.fullPath.includes('/main/user')) {
+ if (to.name === 'user' || to.name === 'userOverview' || to.name === 'userConfig' || to.name === 'userJobs' || to.name === 'jobRequests') {
if (!store.state.login.user.group.includes('user')) {
- next('/login')
+ next({name: 'login'})
}
}
if (!store.state.login.user.accessToken) {
- next('/login')
+ next({name: 'login'})
}
}
- if (to.fullPath === '/login') {
+ if (to.name === 'login') {
if (store.state.login.user.accessToken) {
if (store.state.login.user.group.includes('moneymaster')) {
- next('/main/finanzer/overview')
+ next({name: 'overview'})
} else if (store.state.login.user.group.includes('bar')) {
- next('/main/bar/geruecht')
+ next({name: 'geruecht'})
} else if (store.state.login.user.group.includes('user')) {
- next('/main/user/add')
+ next({name: 'add'})
} else if (store.state.login.user.group.includes('extern')) {
- next('/main')
+ next({name: 'main'})
}
}
}