Web: Files: fixed files view after resize
This commit is contained in:
parent
b066587fdc
commit
0d302d5549
@ -9,6 +9,7 @@ import EmptyContainer from "../../../../components/EmptyContainer";
|
|||||||
import withLoader from "../../../../HOCs/withLoader";
|
import withLoader from "../../../../HOCs/withLoader";
|
||||||
import TableView from "./TableView/TableContainer";
|
import TableView from "./TableView/TableContainer";
|
||||||
import withHotkeys from "../../../../HOCs/withHotkeys";
|
import withHotkeys from "../../../../HOCs/withHotkeys";
|
||||||
|
import { Consumer } from "@appserver/components/utils/context";
|
||||||
|
|
||||||
let currentDroppable = null;
|
let currentDroppable = null;
|
||||||
|
|
||||||
@ -185,14 +186,23 @@ const SectionBodyContent = (props) => {
|
|||||||
|
|
||||||
//console.log("Files Home SectionBodyContent render", props);
|
//console.log("Files Home SectionBodyContent render", props);
|
||||||
|
|
||||||
return (!fileActionId && isEmptyFilesList) || null ? (
|
return (
|
||||||
<EmptyContainer />
|
<Consumer>
|
||||||
) : viewAs === "tile" ? (
|
{(context) =>
|
||||||
<FilesTileContainer t={t} />
|
(!fileActionId && isEmptyFilesList) || null ? (
|
||||||
) : viewAs === "table" ? (
|
<EmptyContainer />
|
||||||
<TableView tReady={tReady} />
|
) : viewAs === "tile" ? (
|
||||||
) : (
|
<FilesTileContainer sectionWidth={context.sectionWidth} t={t} />
|
||||||
<FilesRowContainer tReady={tReady} />
|
) : viewAs === "table" ? (
|
||||||
|
<TableView sectionWidth={context.sectionWidth} tReady={tReady} />
|
||||||
|
) : (
|
||||||
|
<FilesRowContainer
|
||||||
|
sectionWidth={context.sectionWidth}
|
||||||
|
tReady={tReady}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
</Consumer>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user