1
0
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:
Michael An
2024-07-08 17:19:40 +08:00
committed by GitHub
parent 6f0bd6920c
commit 739a12ada4

View File

@@ -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;
} }