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