Commit e4cd3337 authored by Maxym Borodenko's avatar Maxym Borodenko

Disable downloads when _text is used

parent 65a1d30a
......@@ -80,13 +80,13 @@ class BrowsePage extends BrowsePageTemplate<Accession> {
{ this.state.authenticated &&
<DownloadDialog downloadUrl="/proxy/api/v1/acn/download"
postParams={ { mcpd: 'mcpd', f: paged && paged.filterCode || '' } }
disabled={ paged && paged.totalElements > DOWNLOAD_LIMIT }
disabled={ paged && (paged.totalElements > DOWNLOAD_LIMIT || paged.filter._text) }
slug={ slug }
buttonTitle={ `${t('common:action.download')} ${t('accessions.public.p.display.MCPD')}` } />
}
<DownloadDialog downloadUrl="/proxy/api/v1/acn/download"
postParams={ { dwca: 'dwca', f: paged && paged.filterCode || '' } }
disabled={ paged && paged.totalElements > DOWNLOAD_LIMIT }
disabled={ paged && (paged.totalElements > DOWNLOAD_LIMIT || paged.filter._text) }
slug={ slug }
buttonTitle={ `${t('common:action.download')} ${t('accessions.public.p.display.zip')}` } />
</ButtonBar>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment