mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-27 23:56:18 +00:00
record the status of detail to local storage (#7194)
* record the status of detail to local storage * face recognition view support show detail * feat: optimize code * fix: bug --------- Co-authored-by: zhouwenxuan <aries@Mac.local> Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
@@ -9,7 +9,7 @@ import MapViewToolBar from './map-view-toolbar';
|
||||
|
||||
import './index.css';
|
||||
|
||||
const ViewToolBar = ({ viewId, isCustomPermission, showDetail, closeDetail }) => {
|
||||
const ViewToolBar = ({ viewId, isCustomPermission, onToggleDetail }) => {
|
||||
const [view, setView] = useState(null);
|
||||
const [collaborators, setCollaborators] = useState([]);
|
||||
|
||||
@@ -89,14 +89,14 @@ const ViewToolBar = ({ viewId, isCustomPermission, showDetail, closeDetail }) =>
|
||||
collaborators={collaborators}
|
||||
modifyFilters={modifyFilters}
|
||||
modifySorts={modifySorts}
|
||||
showDetail={showDetail}
|
||||
onToggleDetail={onToggleDetail}
|
||||
/>
|
||||
)}
|
||||
{viewType === VIEW_TYPE.FACE_RECOGNITION && (
|
||||
<FaceRecognitionViewToolbar
|
||||
isCustomPermission={isCustomPermission}
|
||||
view={view}
|
||||
showDetail={showDetail}
|
||||
onToggleDetail={onToggleDetail}
|
||||
/>
|
||||
)}
|
||||
{viewType === VIEW_TYPE.KANBAN && (
|
||||
@@ -107,8 +107,7 @@ const ViewToolBar = ({ viewId, isCustomPermission, showDetail, closeDetail }) =>
|
||||
collaborators={collaborators}
|
||||
modifyFilters={modifyFilters}
|
||||
modifySorts={modifySorts}
|
||||
showDetail={showDetail}
|
||||
closeDetail={closeDetail}
|
||||
onToggleDetail={onToggleDetail}
|
||||
/>
|
||||
)}
|
||||
{viewType === VIEW_TYPE.MAP && (
|
||||
@@ -126,8 +125,7 @@ const ViewToolBar = ({ viewId, isCustomPermission, showDetail, closeDetail }) =>
|
||||
ViewToolBar.propTypes = {
|
||||
viewId: PropTypes.string,
|
||||
isCustomPermission: PropTypes.bool,
|
||||
showDetail: PropTypes.func,
|
||||
closeDetail: PropTypes.func,
|
||||
onToggleDetail: PropTypes.func,
|
||||
};
|
||||
|
||||
export default ViewToolBar;
|
||||
|
Reference in New Issue
Block a user