Files.Client: Home: Added onClick for RowContent on mobile and tablet
This commit is contained in:
parent
dff6d378c5
commit
66ad09d869
@ -101,8 +101,8 @@ class FilesRowContent extends React.PureComponent {
|
||||
onFilesClick = () => {
|
||||
const { id, fileExst } = this.props.item;
|
||||
const { filter, parentFolder, onLoading } = this.props;
|
||||
onLoading(true);
|
||||
if (!fileExst) {
|
||||
onLoading(true);
|
||||
const newFilter = filter.clone();
|
||||
if (!newFilter.treeFolders.includes(parentFolder.toString())) {
|
||||
newFilter.treeFolders.push(parentFolder.toString());
|
||||
@ -117,6 +117,13 @@ class FilesRowContent extends React.PureComponent {
|
||||
}
|
||||
};
|
||||
|
||||
onMobileRowClick = (e) => {
|
||||
if (window.innerWidth > 1024)
|
||||
return;
|
||||
|
||||
this.onFilesClick();
|
||||
}
|
||||
|
||||
getStatusByDate = () => {
|
||||
const { culture, t, item } = this.props;
|
||||
const { created, updated, version, fileExst } = item;
|
||||
@ -252,6 +259,7 @@ class FilesRowContent extends React.PureComponent {
|
||||
<SimpleFilesRowContent
|
||||
sideColor="#333"
|
||||
isFile={fileExst}
|
||||
onClick={this.onMobileRowClick}
|
||||
>
|
||||
<Link
|
||||
containerWidth='100%'
|
||||
|
Loading…
Reference in New Issue
Block a user