From 23875d6bc8e783ca8c8687ec5308e63594b1ebf3 Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 3 Jan 2022 10:13:44 +0100 Subject: [PATCH] month names in table of selected users of the open creations in multiple creations --- admin/src/pages/Creation.vue | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/admin/src/pages/Creation.vue b/admin/src/pages/Creation.vue index 3e18b3078..cdcc03c9d 100644 --- a/admin/src/pages/Creation.vue +++ b/admin/src/pages/Creation.vue @@ -93,7 +93,31 @@ 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_creations') }, + { + key: 'creation', + label: this.$t('open_creation'), + 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
+ ` + ) + }, + }, { key: 'bookmark', label: this.$t('remove') }, ], itemsList: [],