mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-27 07:44:50 +00:00
[delete] create draft menu (#2893)
This commit is contained in:
@@ -2,7 +2,6 @@ import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Dropdown, DropdownMenu, DropdownToggle, DropdownItem } from 'reactstrap';
|
||||
import { gettext, isPro, enableFileComment, fileAuditEnabled, folderPermEnabled } from '../../utils/constants';
|
||||
import { Utils } from '../../utils/utils';
|
||||
|
||||
const propTypes = {
|
||||
currentRepoInfo: PropTypes.object.isRequired,
|
||||
@@ -63,9 +62,6 @@ class DirentMenu extends React.Component {
|
||||
menuList.push('Lock');
|
||||
}
|
||||
}
|
||||
if (Utils.isMarkdownFile(dirent.name)) {
|
||||
menuList.push('New Draft');
|
||||
}
|
||||
menuList.push('Divider');
|
||||
if (enableFileComment) {
|
||||
menuList.push('Comment');
|
||||
@@ -118,9 +114,6 @@ class DirentMenu extends React.Component {
|
||||
case 'Lock':
|
||||
translateResult = gettext('Lock');
|
||||
break;
|
||||
case 'New Draft':
|
||||
translateResult = gettext('New Draft');
|
||||
break;
|
||||
case 'Comment':
|
||||
translateResult = gettext('Comment');
|
||||
break;
|
||||
|
Reference in New Issue
Block a user