1
0
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:
Aries
2024-10-14 10:18:40 +08:00
committed by GitHub
parent 52cccb5ce9
commit 600c6082c3
2 changed files with 11 additions and 2 deletions

View File

@@ -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>