mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-11 03:41:12 +00:00
fix: face recognition toolbar (#6927)
Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
@@ -11,6 +11,7 @@ import ReposSortMenu from '../../components/repos-sort-menu';
|
||||
import MetadataViewToolBar from '../../metadata/components/view-toolbar';
|
||||
import { PRIVATE_FILE_TYPE } from '../../constants';
|
||||
import { DIRENT_DETAIL_MODE } from '../dir-view-mode/constants';
|
||||
import { FACE_RECOGNITION_VIEW_ID } from '../../metadata/constants';
|
||||
|
||||
const propTypes = {
|
||||
repoID: PropTypes.string.isRequired,
|
||||
@@ -117,6 +118,7 @@ class DirTool extends React.Component {
|
||||
});
|
||||
|
||||
if (isFileExtended) {
|
||||
if (viewId === FACE_RECOGNITION_VIEW_ID) return null;
|
||||
return (
|
||||
<div className="dir-tool">
|
||||
<MetadataViewToolBar viewId={viewId} isCustomPermission={isCustomPermission} showDetail={this.showDirentDetail} />
|
||||
|
Reference in New Issue
Block a user