mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 02:48:51 +00:00
fix markdown file type (#6312)
This commit is contained in:
@@ -50,10 +50,6 @@ class DirTool extends React.Component {
|
|||||||
this.setState({isRepoTagDialogOpen: false});
|
this.setState({isRepoTagDialogOpen: false});
|
||||||
};
|
};
|
||||||
|
|
||||||
isMarkdownFile(filePath) {
|
|
||||||
return Utils.getFileName(filePath).includes('.md');
|
|
||||||
}
|
|
||||||
|
|
||||||
getMenu = () => {
|
getMenu = () => {
|
||||||
const list = [];
|
const list = [];
|
||||||
const { repoID, userPerm, currentPath } = this.props;
|
const { repoID, userPerm, currentPath } = this.props;
|
||||||
@@ -61,7 +57,7 @@ class DirTool extends React.Component {
|
|||||||
if (userPerm !== 'rw') {
|
if (userPerm !== 'rw') {
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
if (this.isMarkdownFile(currentPath)) {
|
if (Utils.isMarkdownFile(currentPath)) {
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user