mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 16:10:26 +00:00
Merge pull request #7275 from haiwen/optimize/map_view
Optimize/map view
This commit is contained in:
@@ -9,7 +9,7 @@ import { siteRoot, gettext } from '../../utils/constants';
|
||||
import { Utils } from '../../utils/utils';
|
||||
import { PRIVATE_FILE_TYPE } from '../../constants';
|
||||
import { debounce } from '../../metadata/utils/common';
|
||||
import { EVENT_BUS_TYPE, FACE_RECOGNITION_VIEW_ID } from '../../metadata/constants';
|
||||
import { EVENT_BUS_TYPE } from '../../metadata/constants';
|
||||
import { ALL_TAGS_ID } from '../../tag/constants';
|
||||
|
||||
const propTypes = {
|
||||
@@ -126,13 +126,12 @@ class DirPath extends React.Component {
|
||||
turnViewPathToLink = (pathList) => {
|
||||
if (!Array.isArray(pathList) || pathList.length === 0) return null;
|
||||
const [, , viewId, children] = pathList;
|
||||
const isViewSupportClick = viewId === FACE_RECOGNITION_VIEW_ID && children;
|
||||
return (
|
||||
<>
|
||||
<span className="path-split">/</span>
|
||||
<span className="path-item">{gettext('Views')}</span>
|
||||
<span className="path-split">/</span>
|
||||
<span className="path-item" role={isViewSupportClick ? 'button' : null} onClick={isViewSupportClick ? this.handleRefresh : () => {}}>
|
||||
<span className="path-item" role={children ? 'button' : null} onClick={children ? this.handleRefresh : () => {}}>
|
||||
<MetadataViewName id={viewId} />
|
||||
</span>
|
||||
{children && (
|
||||
|
Reference in New Issue
Block a user