diff --git a/daiquiri/query/assets/js/query/components/job/JobDownload.js b/daiquiri/query/assets/js/query/components/job/JobDownload.js index ed835525..037754f3 100644 --- a/daiquiri/query/assets/js/query/components/job/JobDownload.js +++ b/daiquiri/query/assets/js/query/components/job/JobDownload.js @@ -53,7 +53,7 @@ const JobDownload = ({ job }) => { } } - return ( + return job.phase == 'COMPLETED' ? (
{gettext('For further processing of the data, you can download the results table' + @@ -90,6 +90,8 @@ const JobDownload = ({ job }) => { ) }
The query job did not complete successfully.
) } diff --git a/daiquiri/query/assets/js/query/components/job/JobPlot.js b/daiquiri/query/assets/js/query/components/job/JobPlot.js index 6c27a83d..f5f0095b 100644 --- a/daiquiri/query/assets/js/query/components/job/JobPlot.js +++ b/daiquiri/query/assets/js/query/components/job/JobPlot.js @@ -12,7 +12,7 @@ import JobPlotType from './JobPlotType' const JobPlot = ({ job }) => { - const [type, setType] = useState('histogram') + const [type, setType] = useState('scatter') const [columns, setColumns] = useState([]) useEffect(() => setColumns(job.columns.filter((column) => ( @@ -20,19 +20,21 @@ const JobPlot = ({ job }) => { !excludedUcds.some((ucd) => (!isNil(column.ucd) && column.ucd.split(';').includes(ucd))) ))), [job]) - return ( + return job.phase == 'COMPLETED' ? (The query job did not complete successfully.
) } diff --git a/daiquiri/query/assets/js/query/components/job/JobResults.js b/daiquiri/query/assets/js/query/components/job/JobResults.js index c426954d..c0afffb5 100644 --- a/daiquiri/query/assets/js/query/components/job/JobResults.js +++ b/daiquiri/query/assets/js/query/components/job/JobResults.js @@ -14,13 +14,15 @@ const JobResults = ({ job }) => { const { data: columns } = useJobColumnsQuery(job.id, params) const { data: rows } = useJobRowsQuery(job.id, params) - return ( + return job.phase == 'COMPLETED' ? (The query job did not complete successfully.
) } diff --git a/daiquiri/query/assets/js/query/components/job/plots/ColorScatter.js b/daiquiri/query/assets/js/query/components/job/plots/ColorScatter.js index 745d9b4d..fc0ef2e3 100644 --- a/daiquiri/query/assets/js/query/components/job/plots/ColorScatter.js +++ b/daiquiri/query/assets/js/query/components/job/plots/ColorScatter.js @@ -8,7 +8,7 @@ import { useJobPlotQuery } from '../../../hooks/queries' import ColorScatterForm from './ColorScatterForm' import ColorScatterPlot from './ColorScatterPlot' -const ColorScatter = ({ jobId, columns }) => { +const ColorScatter = ({ job, columns }) => { const [values, setValues] = useState({ x: { @@ -36,9 +36,9 @@ const ColorScatter = ({ jobId, columns }) => { } }), [columns]) - const { data: x } = useJobPlotQuery(jobId, values.x.column) - const { data: y } = useJobPlotQuery(jobId, values.y.column) - const { data: z } = useJobPlotQuery(jobId, values.z.column) + const { data: x } = useJobPlotQuery(job, values.x.column) + const { data: y } = useJobPlotQuery(job, values.y.column) + const { data: z } = useJobPlotQuery(job, values.z.column) return (