feat: show formatted dates instead of epoch on results (#10268)

This commit is contained in:
Ville Brofeldt
2020-07-09 20:48:53 +03:00
committed by GitHub
parent 300b2bbf2d
commit c0d663db9a
3 changed files with 44 additions and 3 deletions

View File

@@ -37,7 +37,6 @@ import {
} from 'react-bootstrap';
import { Table } from 'reactable-arc';
import { t } from '@superset-ui/translation';
import { SupersetClient } from '@superset-ui/connection';
import getClientErrorObject from '../../utils/getClientErrorObject';
import CopyToClipboard from './../../components/CopyToClipboard';
@@ -47,7 +46,10 @@ import Loading from '../../components/Loading';
import ModalTrigger from './../../components/ModalTrigger';
import Button from '../../components/Button';
import RowCountLabel from './RowCountLabel';
import { prepareCopyToClipboardTabularData } from '../../utils/common';
import {
applyFormattingToTabularData,
prepareCopyToClipboardTabularData,
} from '../../utils/common';
import PropertiesModal from './PropertiesModal';
import { sliceUpdated } from '../actions/exploreActions';
@@ -197,7 +199,7 @@ export class DisplayQueryButton extends React.PureComponent {
<Table
className="table table-condensed"
sortable
data={data}
data={applyFormattingToTabularData(data)}
hideFilterInput
filterBy={this.state.filterText}
filterable={data.length ? Object.keys(data[0]) : null}