Implement dislplay email for admins

This commit is contained in:
aonomike 2019-10-04 16:55:53 +03:00
parent eae19ca33d
commit 64b9ca7f43
3 changed files with 5 additions and 7 deletions

View File

@ -259,6 +259,7 @@
"columns": { "columns": {
"number": "Nr.", "number": "Nr.",
"name": "Name", "name": "Name",
"email": "E-mail",
"slug": "Slug", "slug": "Slug",
"role": "Rolle", "role": "Rolle",
"createdAt": "Erstellt am" "createdAt": "Erstellt am"

View File

@ -260,6 +260,7 @@
"columns": { "columns": {
"number": "No.", "number": "No.",
"name": "Name", "name": "Name",
"email": "E-mail",
"slug": "Slug", "slug": "Slug",
"role": "Role", "role": "Role",
"createdAt": "Created at" "createdAt": "Created at"

View File

@ -34,14 +34,9 @@
</nuxt-link> </nuxt-link>
</template> </template>
<template slot="email" slot-scope="scope"> <template slot="email" slot-scope="scope">
<nuxt-link <a :href="`mailto:${scope.row.email}`">
:to="{
name: 'profile-id-slug',
params: { id: scope.row.id, slug: scope.row.slug },
}"
>
<b>{{ scope.row.email }}</b> <b>{{ scope.row.email }}</b>
</nuxt-link> </a>
</template> </template>
<template slot="slug" slot-scope="scope"> <template slot="slug" slot-scope="scope">
<nuxt-link <nuxt-link
@ -102,6 +97,7 @@ export default {
return { return {
index: this.$t('admin.users.table.columns.number'), index: this.$t('admin.users.table.columns.number'),
name: this.$t('admin.users.table.columns.name'), name: this.$t('admin.users.table.columns.name'),
email: this.$t('admin.users.table.columns.email'),
slug: this.$t('admin.users.table.columns.slug'), slug: this.$t('admin.users.table.columns.slug'),
createdAt: this.$t('admin.users.table.columns.createdAt'), createdAt: this.$t('admin.users.table.columns.createdAt'),
contributionsCount: { contributionsCount: {