[DE PE SSE] Fix render components in main

This commit is contained in:
ShimaginAndrey 2021-09-16 17:21:00 +03:00
parent 6429da5c5a
commit 21e84003c4
3 changed files with 12 additions and 4 deletions

View file

@ -150,7 +150,9 @@ class MainPage extends Component {
!this.state.collaborationVisible ? null :
<Collaboration onclosed={this.handleOptionsViewClosed.bind(this, 'coauth')} page={this.state.collaborationPage} />
}
<ContextMenu openOptions={this.handleClickToOpenOptions.bind(this)} />
{!appOptions.isDocReady ? null :
<ContextMenu openOptions={this.handleClickToOpenOptions.bind(this)} />
}
</Page>
)
}

View file

@ -142,7 +142,10 @@ class MainPage extends Component {
!this.state.collaborationVisible ? null :
<CollaborationView onclosed={this.handleOptionsViewClosed.bind(this, 'coauth')} />
}
<ContextMenu openOptions={this.handleClickToOpenOptions.bind(this)} />
{!appOptions.isDocReady ? null :
<ContextMenu openOptions={this.handleClickToOpenOptions.bind(this)} />
}
</Page>
</Fragment>
)

View file

@ -131,13 +131,16 @@ class MainPage extends Component {
}
{!appOptions.isDocReady ? null :
<FilterOptionsController />
<>
<FilterOptionsController />
<ContextMenu openOptions={this.handleClickToOpenOptions.bind(this)} />
</>
}
<Statusbar />
<FunctionGroups /> {/* hidden component*/}
<ContextMenu openOptions={this.handleClickToOpenOptions.bind(this)} />
</Page>
)
}