mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-27 15:54:39 +00:00
Md view permission (#8064)
* metadata view permission * update * optimize alg * update * add cache * optimize * update --------- Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com> Co-authored-by: r350178982 <32759763+r350178982@users.noreply.github.com>
This commit is contained in:
@@ -73,6 +73,7 @@ class LibContentView extends React.Component {
|
||||
libNeedDecrypt: false,
|
||||
isGroupOwnedRepo: false,
|
||||
userPerm: '',
|
||||
showMdView: false,
|
||||
selectedDirentList: [],
|
||||
lastSelectedIndex: null,
|
||||
fileTags: [],
|
||||
@@ -2289,8 +2290,12 @@ class LibContentView extends React.Component {
|
||||
this.setState({ isDirentSelected });
|
||||
};
|
||||
|
||||
metadataStatusCallback = ({ enableTags }) => {
|
||||
metadataStatusCallback = (status) => {
|
||||
const { enableTags, showView } = status;
|
||||
this.props.eventBus.dispatch(EVENT_BUS_TYPE.TAG_STATUS, enableTags);
|
||||
this.setState({
|
||||
showMdView: showView
|
||||
});
|
||||
};
|
||||
|
||||
tagsChangedCallback = (tags) => {
|
||||
@@ -2505,6 +2510,7 @@ class LibContentView extends React.Component {
|
||||
updateRepoInfo={this.updateRepoInfo}
|
||||
isGroupOwnedRepo={this.state.isGroupOwnedRepo}
|
||||
userPerm={userPerm}
|
||||
showMdView={this.state.showMdView}
|
||||
enableDirPrivateShare={enableDirPrivateShare}
|
||||
isTreeDataLoading={this.state.isTreeDataLoading}
|
||||
treeData={this.state.treeData}
|
||||
|
Reference in New Issue
Block a user