Fixes in reports. Reports seem to work now

This commit is contained in:
Tomas Bures 2018-12-21 19:09:18 +01:00
parent 0be4af5f6c
commit 5a16d789a0
30 changed files with 716 additions and 338 deletions

View file

@ -10,7 +10,10 @@ import axios from '../lib/axios';
import { ReportState } from '../../../shared/reports';
import {Icon} from "../lib/bootstrap-components";
import {checkPermissions} from "../lib/permissions";
import {getUrl} from "../lib/urls";
import {
getPublicUrl,
getUrl
} from "../lib/urls";
import {
tableAddDeleteButton,
tableRestActionDialogInit,
@ -114,7 +117,7 @@ export default class List extends Component {
} else if (mimeType === 'text/csv') {
viewContent = {
label: <Icon icon="download-alt" title={t('download')}/>,
href: `/reports/${id}/download`
href: getUrl(`rpts/${id}/download`)
};
}