mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Date format if value null => '-'
This commit is contained in:
parent
d843f0beb0
commit
dc0e9c478e
@ -206,7 +206,7 @@ export default {
|
|||||||
key: 'contributionDate',
|
key: 'contributionDate',
|
||||||
label: this.$t('created'),
|
label: this.$t('created'),
|
||||||
formatter: (value) => {
|
formatter: (value) => {
|
||||||
return this.$d(new Date(value), 'short')
|
return value ? this.$d(new Date(value), 'short') : '-'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ key: 'moderator', label: this.$t('moderator') },
|
{ key: 'moderator', label: this.$t('moderator') },
|
||||||
@ -229,21 +229,21 @@ export default {
|
|||||||
key: 'contributionDate',
|
key: 'contributionDate',
|
||||||
label: this.$t('created'),
|
label: this.$t('created'),
|
||||||
formatter: (value) => {
|
formatter: (value) => {
|
||||||
return this.$d(new Date(value), 'short')
|
return value ? this.$d(new Date(value), 'short') : '-'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'createdAt',
|
key: 'createdAt',
|
||||||
label: this.$t('createdAt'),
|
label: this.$t('createdAt'),
|
||||||
formatter: (value) => {
|
formatter: (value) => {
|
||||||
return this.$d(new Date(value), 'short')
|
return value ? this.$d(new Date(value), 'short') : '-'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'confirmedAt',
|
key: 'confirmedAt',
|
||||||
label: this.$t('contributions.confirms'),
|
label: this.$t('contributions.confirms'),
|
||||||
formatter: (value) => {
|
formatter: (value) => {
|
||||||
return this.$d(new Date(value), 'short')
|
return value ? this.$d(new Date(value), 'short') : '-'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ key: 'confirmedBy', label: this.$t('moderator') },
|
{ key: 'confirmedBy', label: this.$t('moderator') },
|
||||||
@ -266,21 +266,21 @@ export default {
|
|||||||
key: 'contributionDate',
|
key: 'contributionDate',
|
||||||
label: this.$t('created'),
|
label: this.$t('created'),
|
||||||
formatter: (value) => {
|
formatter: (value) => {
|
||||||
return this.$d(new Date(value), 'short')
|
return value ? this.$d(new Date(value), 'short') : '-'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'createdAt',
|
key: 'createdAt',
|
||||||
label: this.$t('createdAt'),
|
label: this.$t('createdAt'),
|
||||||
formatter: (value) => {
|
formatter: (value) => {
|
||||||
return this.$d(new Date(value), 'short')
|
return value ? this.$d(new Date(value), 'short') : '-'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'deniedAt',
|
key: 'deniedAt',
|
||||||
label: this.$t('contributions.denied'),
|
label: this.$t('contributions.denied'),
|
||||||
formatter: (value) => {
|
formatter: (value) => {
|
||||||
return this.$d(new Date(value), 'short')
|
return value ? this.$d(new Date(value), 'short') : '-'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ key: 'deniedBy', label: this.$t('moderator') },
|
{ key: 'deniedBy', label: this.$t('moderator') },
|
||||||
@ -303,21 +303,21 @@ export default {
|
|||||||
key: 'contributionDate',
|
key: 'contributionDate',
|
||||||
label: this.$t('created'),
|
label: this.$t('created'),
|
||||||
formatter: (value) => {
|
formatter: (value) => {
|
||||||
return this.$d(new Date(value), 'short')
|
return value ? this.$d(new Date(value), 'short') : '-'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'createdAt',
|
key: 'createdAt',
|
||||||
label: this.$t('createdAt'),
|
label: this.$t('createdAt'),
|
||||||
formatter: (value) => {
|
formatter: (value) => {
|
||||||
return this.$d(new Date(value), 'short')
|
return value ? this.$d(new Date(value), 'short') : '-'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'deletedAt',
|
key: 'deletedAt',
|
||||||
label: this.$t('contributions.deleted'),
|
label: this.$t('contributions.deleted'),
|
||||||
formatter: (value) => {
|
formatter: (value) => {
|
||||||
return this.$d(new Date(value), 'short')
|
return value ? this.$d(new Date(value), 'short') : '-'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ key: 'deletedBy', label: this.$t('moderator') },
|
{ key: 'deletedBy', label: this.$t('moderator') },
|
||||||
@ -340,21 +340,21 @@ export default {
|
|||||||
key: 'contributionDate',
|
key: 'contributionDate',
|
||||||
label: this.$t('created'),
|
label: this.$t('created'),
|
||||||
formatter: (value) => {
|
formatter: (value) => {
|
||||||
return this.$d(new Date(value), 'short')
|
return value ? this.$d(new Date(value), 'short') : '-'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'createdAt',
|
key: 'createdAt',
|
||||||
label: this.$t('createdAt'),
|
label: this.$t('createdAt'),
|
||||||
formatter: (value) => {
|
formatter: (value) => {
|
||||||
return this.$d(new Date(value), 'short')
|
return value ? this.$d(new Date(value), 'short') : '-'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: 'confirmedAt',
|
key: 'confirmedAt',
|
||||||
label: this.$t('contributions.confirms'),
|
label: this.$t('contributions.confirms'),
|
||||||
formatter: (value) => {
|
formatter: (value) => {
|
||||||
return this.$d(new Date(value), 'short')
|
return value ? this.$d(new Date(value), 'short') : '-'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ key: 'confirmedBy', label: this.$t('moderator') },
|
{ key: 'confirmedBy', label: this.$t('moderator') },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user