mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 03:11:07 +00:00
Fix open folder error when select folder (#6899)
* 01 fix code bug when select another folder * 02 optimise codes * 03 fix no share link style
This commit is contained in:
@@ -20,7 +20,10 @@ const DetailContainer = React.memo(({ repoID, path, dirent, currentRepoInfo, rep
|
||||
|
||||
if (path === '/' && !dirent) {
|
||||
return (
|
||||
<LibDetail currentRepoInfo={currentRepoInfo} onClose={onClose} />
|
||||
<LibDetail
|
||||
currentRepoInfo={currentRepoInfo}
|
||||
onClose={onClose}
|
||||
/>
|
||||
);
|
||||
}
|
||||
return (
|
||||
@@ -36,7 +39,8 @@ const DetailContainer = React.memo(({ repoID, path, dirent, currentRepoInfo, rep
|
||||
/>
|
||||
);
|
||||
}, (props, nextProps) => {
|
||||
const isChanged = props.repoID !== nextProps.repoID ||
|
||||
const isChanged =
|
||||
props.repoID !== nextProps.repoID ||
|
||||
props.path !== nextProps.path ||
|
||||
!ObjectUtils.isSameObject(props.dirent, nextProps.dirent) ||
|
||||
!ObjectUtils.isSameObject(props.currentRepoInfo, nextProps.currentRepoInfo) ||
|
||||
|
@@ -73,7 +73,7 @@ class LinkList extends React.Component {
|
||||
</div>
|
||||
</div>
|
||||
{shareLinks.length == 0 ? (
|
||||
<EmptyTip text={gettext('No share links')}/>
|
||||
<EmptyTip text={gettext('No share links')} className='m-0' />
|
||||
) : (
|
||||
<div className='share-list-container share-link-list'>
|
||||
<table className="table-place-header">
|
||||
|
Reference in New Issue
Block a user