Web: Files: fixed display of items in download dialog
This commit is contained in:
parent
d2c427c023
commit
3b5cb1b7fe
@ -18,7 +18,6 @@ const DownloadContent = (props) => {
|
||||
title,
|
||||
isChecked,
|
||||
isIndeterminate,
|
||||
showHeader,
|
||||
} = props;
|
||||
|
||||
const getTitleExtensions = () => {
|
||||
@ -108,6 +107,8 @@ const DownloadContent = (props) => {
|
||||
setIsOpen(!isOpen);
|
||||
};
|
||||
|
||||
const showHeader = items.length > 1;
|
||||
|
||||
return (
|
||||
<StyledDownloadContent isOpen={showHeader ? isOpen : true}>
|
||||
{showHeader && (
|
||||
|
@ -230,20 +230,12 @@ class DownloadDialogComponent extends React.Component {
|
||||
other.filter((f) => f.checked).length <=
|
||||
1;
|
||||
|
||||
const showHeader =
|
||||
documents.length +
|
||||
spreadsheets.length +
|
||||
presentations.length +
|
||||
other.length >
|
||||
1;
|
||||
|
||||
const downloadContentProps = {
|
||||
t,
|
||||
extsConvertible,
|
||||
onSelectFormat: this.onSelectFormat,
|
||||
onRowSelect: this.onRowSelect,
|
||||
getItemIcon: this.getItemIcon,
|
||||
showHeader,
|
||||
};
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user