diff --git a/webapp/locales/de.json b/webapp/locales/de.json index 2f38e2be3..d0cbf13ac 100644 --- a/webapp/locales/de.json +++ b/webapp/locales/de.json @@ -192,7 +192,7 @@ "table": { "columns": { "name": "Name", - "slug": "Username", + "slug": "Slug", "role": "Rolle" } } diff --git a/webapp/locales/en.json b/webapp/locales/en.json index 14872b3d4..c7262795d 100644 --- a/webapp/locales/en.json +++ b/webapp/locales/en.json @@ -193,7 +193,7 @@ "table": { "columns": { "name": "Name", - "slug": "Username", + "slug": "Slug", "role": "Role" } } diff --git a/webapp/pages/admin/users.vue b/webapp/pages/admin/users.vue index de910dd34..8fa0dfe24 100644 --- a/webapp/pages/admin/users.vue +++ b/webapp/pages/admin/users.vue @@ -11,16 +11,26 @@ params: { id: scope.row.id, slug: scope.row.slug }, }" > - {{ scope.row.name | truncate(50) }} + {{ scope.row.name | truncate(20) }} + + + - + - + @@ -49,7 +59,22 @@ export default { index: '#', name: this.$t('admin.users.table.columns.name'), slug: this.$t('admin.users.table.columns.slug'), - role: this.$t('admin.users.table.columns.role'), + contributionsCount: { + label: '🖉', + align: 'right' + }, + commentedCount: { + label: '🗨', + align: 'right' + }, + shoutedCount: { + label: '❤', + align: 'right' + }, + role: { + label: this.$t('admin.users.table.columns.role'), + align: 'right' + } } }, }, @@ -63,6 +88,9 @@ export default { name slug role + contributionsCount + commentedCount + shoutedCount } } `) @@ -72,7 +100,8 @@ export default { return { first, offset } }, update({ User }) { - this.hasNext = User && User.length >= this.pageSize + if (!User) return [] + this.hasNext = User.length >= this.pageSize if (User.length <= 0) return this.User // edge case, avoid a blank page return User.map((u, i) => Object.assign({}, u, { index: this.offset + i })) },