Skip to content
Snippets Groups Projects
Commit 50ce6ebf authored by esikkala's avatar esikkala
Browse files

Update result table

parent 485e2a07
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,9 @@ class ResultTable extends React.Component {
page = this.props.data.page === -1 ? 0 : this.props.data.page;
// console.log(`result table mounted WITHOUT page parameter, set page to ${page}`);
} else {
page = parseInt(querystring.parse(this.props.routeProps.location.search).page);
const qs = this.props.routeProps.location.search.replace('?', '');
page = parseInt(querystring.parse(qs).page);
// console.log(`result table mounted with page parameter, set page to ${page}`);
}
this.props.updatePage(this.props.resultClass, page);
......
......@@ -5,21 +5,6 @@ import TableCell from '@material-ui/core/TableCell';
import { withStyles } from '@material-ui/core/styles';
const styles = () => ({
tableContainer: {
//marginTop: 72,
overflow: 'auto',
width: '100%',
height: 'calc(100% - 72px)'
},
table: {
//marginTop: 72,
//minWidth: 700,
//overflowX: 'auto',
//backgroundColor: theme.palette.background.paper
},
paginationRow: {
borderBottom: '1px solid lightgrey'
},
valueList: {
paddingLeft: 15
},
......@@ -27,19 +12,6 @@ const styles = () => ({
listStyle: 'none',
paddingLeft: 0
},
infoIcon: {
paddingTop: 15
},
progressContainer: {
width: '100%',
height: 'calc(100% - 72px)',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
},
progressTitle: {
marginRight: 15
},
noDate: {
marginRight: 20
}
......
......@@ -32,15 +32,6 @@ export const INITIAL_STATE = {
sortDirection: 'asc',
fetching: false,
tableColumns: [
{
id: 'source',
label: 'Source',
desc: 'Source description',
valueType: 'object',
makeLink: true,
sortValues: true,
numberedList: false
},
{
id: 'prefLabel',
label: 'Label',
......@@ -116,7 +107,16 @@ export const INITIAL_STATE = {
sortValues: true,
numberedList: true,
minWidth: 170
}
},
{
id: 'source',
label: 'Source',
desc: 'Source description',
valueType: 'object',
makeLink: true,
sortValues: true,
numberedList: false
},
],
};
......
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