mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 00:20:07 +00:00
update title when jump from view to folder (#6886)
* update title when jump from view to folder * reset title when leave view page * remove warnings --------- Co-authored-by: zhouwenxuan <aries@Mac.local> Co-authored-by: Michael An <2331806369@qq.com>
This commit is contained in:
@@ -452,6 +452,7 @@ class LibContentView extends React.Component {
|
||||
|
||||
showDir = (path) => {
|
||||
let repoID = this.props.repoID;
|
||||
this.props.resetTitle();
|
||||
|
||||
if (!this.state.isSessionExpired) {
|
||||
// update state
|
||||
@@ -2439,7 +2440,7 @@ class LibContentView extends React.Component {
|
||||
/>
|
||||
)}
|
||||
<MediaQuery query="(max-width: 767.8px)">
|
||||
<Modal zIndex="1030" isOpen={!Utils.isDesktop() && this.state.isTreePanelShown} toggle={this.toggleTreePanel} contentClassName="d-none"></Modal>
|
||||
<Modal zIndex="1030" isOpen={!isDesktop && this.state.isTreePanelShown} toggle={this.toggleTreePanel} contentClassName="d-none"></Modal>
|
||||
</MediaQuery>
|
||||
</CollaboratorsProvider>
|
||||
</MetadataProvider>
|
||||
|
Reference in New Issue
Block a user