1
0
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:
Michael An
2019-01-28 14:24:22 +08:00
committed by Daniel Pan
parent 57fac87e44
commit f33aa7123a
2 changed files with 0 additions and 33 deletions

View File

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