From 126db8aa99196f1ebdffe4d376216609a2fbac76 Mon Sep 17 00:00:00 2001 From: ogerly Date: Thu, 6 Jan 2022 10:38:37 +0100 Subject: [PATCH] shortname month in open creations in user search table --- admin/src/pages/UserSearch.vue | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/admin/src/pages/UserSearch.vue b/admin/src/pages/UserSearch.vue index 2c8b289e0..06d1629c1 100644 --- a/admin/src/pages/UserSearch.vue +++ b/admin/src/pages/UserSearch.vue @@ -40,29 +40,17 @@ export default { { key: 'email', label: this.$t('e_mail') }, { key: 'firstName', label: this.$t('firstname') }, { key: 'lastName', label: this.$t('lastname') }, - { + { key: 'creation', - label: this.$t('open_creation'), + // label: this.$t('open_creation') + 'Jan | Feb | März', + label: + this.$moment().subtract(2, 'month').format('MMM') + + ' | ' + + this.$moment().subtract(1, 'month').format('MMM') + + ' | ' + + this.$moment().format('MMM'), formatter: (value, key, item) => { - return ( - ` -
` + - this.$moment().subtract(2, 'month').format('MMMM') + - ` - ` + - String(value[0]) + - ` GDD
-
` + - this.$moment().subtract(1, 'month').format('MMMM') + - ` - ` + - String(value[1]) + - ` GDD
-
` + - this.$moment().format('MMMM') + - ` - ` + - String(value[2]) + - ` GDD
- ` - ) + return String(value[0]) + ` | ` + String(value[1]) + ` | ` + String(value[2]) }, }, { key: 'show_details', label: this.$t('details') },