Skip to content
Snippets Groups Projects
Commit 62a0e000 authored by Jack Reed's avatar Jack Reed Committed by Chris Beer
Browse files

Move rendering of show collection modal to allow when a manifest is selected

parent a11ea77a
Branches
Tags
No related merge requests found
......@@ -28,13 +28,12 @@ export class PrimaryWindow extends Component {
*/
renderViewer() {
const {
audioResources, isCollection, isCollectionDialogVisible,
audioResources, isCollection,
isFetching, videoResources, view, windowId,
} = this.props;
if (isCollection) {
return (
<>
{ isCollectionDialogVisible && <CollectionDialog windowId={windowId} /> }
<SelectCollection
windowId={windowId}
/>
......@@ -76,11 +75,12 @@ export class PrimaryWindow extends Component {
* Render the component
*/
render() {
const { windowId, classes } = this.props;
const { isCollectionDialogVisible, windowId, classes } = this.props;
return (
<div className={classNames(ns('primary-window'), classes.primaryWindow)}>
<WindowSideBar windowId={windowId} />
<CompanionArea windowId={windowId} position="left" />
{ isCollectionDialogVisible && <CollectionDialog windowId={windowId} /> }
<Suspense fallback={<div />}>
{this.renderViewer()}
</Suspense>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment