aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-02-25 19:06:55 +0100
committerJulius Härtl <jus@bitgrid.net>2020-03-10 14:49:31 +0100
commit93e6889fb28b7784b66cddf659f47e24fb5324e8 (patch)
tree4e76928b4843bb8cfdec6cefda05d1f18915be90 /apps/settings
parent1103e8abecc11642e84b8887744b8acde6cb44af (diff)
downloadnextcloud-server-93e6889fb28b7784b66cddf659f47e24fb5324e8.tar.gz
nextcloud-server-93e6889fb28b7784b66cddf659f47e24fb5324e8.zip
Fix group navigation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/src/router.js2
-rw-r--r--apps/settings/src/views/Users.vue11
2 files changed, 9 insertions, 4 deletions
diff --git a/apps/settings/src/router.js b/apps/settings/src/router.js
index c11c74ac163..d292719d384 100644
--- a/apps/settings/src/router.js
+++ b/apps/settings/src/router.js
@@ -53,7 +53,7 @@ export default new Router({
name: 'users',
children: [
{
- path: ':selectedGroup(.*)',
+ path: ':selectedGroup',
name: 'group',
component: Users,
},
diff --git a/apps/settings/src/views/Users.vue b/apps/settings/src/views/Users.vue
index b3b60c5e287..336d7bfe931 100644
--- a/apps/settings/src/views/Users.vue
+++ b/apps/settings/src/views/Users.vue
@@ -49,10 +49,11 @@
</AppNavigationCounter>
</AppNavigationItem>
<AppNavigationItem
+ v-if="settings.isAdmin"
id="admin"
:exact="true"
:title="t('settings', 'Admins')"
- :to="{ name: 'users', params: { selectedGroup: 'admin' } }"
+ :to="{ name: 'group', params: { selectedGroup: 'admin' } }"
icon="icon-user-admin">
<AppNavigationCounter v-if="adminGroupMenu.count" slot="counter">
{{ adminGroupMenu.count }}
@@ -65,7 +66,7 @@
id="disabled"
:exact="true"
:title="t('settings', 'Disabled users')"
- :to="{ name: 'users', params: { selectedGroup: 'disabled' } }"
+ :to="{ name: 'group', params: { selectedGroup: 'disabled' } }"
icon="icon-disabled-users">
<AppNavigationCounter v-if="disabledGroupMenu.usercount > 0" slot="counter">
{{ disabledGroupMenu.usercount }}
@@ -78,7 +79,7 @@
:key="group.id"
:exact="true"
:title="group.title"
- :to="{ name: 'users', params: { selectedGroup: group.id } }">
+ :to="{ name: 'group', params: { selectedGroup: group.id } }">
<AppNavigationCounter v-if="group.count" slot="counter">
{{ group.count }}
</AppNavigationCounter>
@@ -489,6 +490,10 @@ export default {
*/
formatGroupMenu(group) {
const item = {}
+ if (typeof group === 'undefined') {
+ return {}
+ }
+
item.id = group.id
item.title = group.name
item.usercount = group.usercount