Fixed a bug in the Licenses columns.jsx

This commit is contained in:
Mathias Wagner 2023-09-10 16:09:50 +02:00
parent 72fb351dcf
commit b77180579f
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -9,7 +9,7 @@ export default [
{field: 'maxUses', headerName: 'Maximale Nutzungen', width: 180, renderCell: (params) => {field: 'maxUses', headerName: 'Maximale Nutzungen', width: 180, renderCell: (params) =>
params.value === -1 ? "Unbegrenzt" : params.value}, params.value === -1 ? "Unbegrenzt" : params.value},
{field: 'expirationDate', headerName: 'Ablaufdatum', width: 200, renderCell: (params) => {field: 'expirationDate', headerName: 'Ablaufdatum', width: 200, renderCell: (params) =>
new Date(params.value).getTime() !== 0 ? "Nie" : new Date(params.value).toLocaleString()}, new Date(params.value).getTime() === 0 ? "Nie" : new Date(params.value).toLocaleString()},
{field: 'actions', headerName: 'Aktionen', width: 80, renderCell: () => <Stack direction="row" gap={1}> {field: 'actions', headerName: 'Aktionen', width: 80, renderCell: () => <Stack direction="row" gap={1}>
<IconButton size="small" color="primary"><Edit /></IconButton> <IconButton size="small" color="primary"><Edit /></IconButton>
<IconButton size="small" color="error"><Delete /></IconButton> <IconButton size="small" color="error"><Delete /></IconButton>