Skip to content
Snippets Groups Projects
Commit ad92d4a9 authored by piotr.kupczyk@id.ethz.ch's avatar piotr.kupczyk@id.ethz.ch
Browse files

SSDM-13463 : Export selection of fields from tables - UI part - format dates in TSV export

parent 46faa51b
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -29,7 +29,14 @@ function registratorColumn(params) { ...@@ -29,7 +29,14 @@ function registratorColumn(params) {
function dateColumn(params) { function dateColumn(params) {
return { return {
...params, ...params,
getValue: ({ row }) => _.get(row, params.path), getValue: ({ row, operation }) => {
const value = _.get(row, params.path)
if (operation === 'export') {
return date.format(value)
} else {
return value
}
},
renderValue: ({ value }) => date.format(value), renderValue: ({ value }) => date.format(value),
renderFilter: ({ value, onChange }) => { renderFilter: ({ value, onChange }) => {
return ( return (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment