aboutsummaryrefslogtreecommitdiffstats
path: root/settings/src/views/Users.vue
diff options
context:
space:
mode:
Diffstat (limited to 'settings/src/views/Users.vue')
-rw-r--r--settings/src/views/Users.vue13
1 files changed, 13 insertions, 0 deletions
diff --git a/settings/src/views/Users.vue b/settings/src/views/Users.vue
index 605d71730d7..12aa7c789f1 100644
--- a/settings/src/views/Users.vue
+++ b/settings/src/views/Users.vue
@@ -251,6 +251,8 @@ export default {
let groups = this.$store.getters.getGroups;
groups = Array.isArray(groups) ? groups : [];
+ console.log(groups);
+
// Map groups
groups = groups.map(group => {
let item = {};
@@ -290,18 +292,29 @@ export default {
let disabledGroup = groups[disabledGroupIndex];
if (adminGroup && adminGroup.text) {
adminGroup.text = t('settings', 'Admins'); // rename admin group
+ adminGroup.icon = 'icon-user-admin'; // set icon
}
if (disabledGroup && disabledGroup.text) {
disabledGroup.text = t('settings', 'Disabled users'); // rename disabled group
+ disabledGroup.icon = 'icon-disabled-users'; // set icon
if (disabledGroup.utils.counter === 0) {
groups.splice(disabledGroupIndex, 1); // remove disabled if empty
}
}
+ // Add separator
+ let separator = {
+ caption: true,
+ text: t('settings', 'Groups')
+ };
+ groups.unshift(separator);
+
+
// Add everyone group
let everyoneGroup = {
id: 'everyone',
key: 'everyone',
+ icon: 'icon-contacts-dark',
router: {name:'users'},
text: t('settings', 'Everyone'),
};