mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-15 14:49:09 +00:00
add enable file tags config (#6456)
Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Dropdown, DropdownMenu, DropdownToggle, DropdownItem } from 'reactstrap';
|
||||
import { gettext } from '../../utils/constants';
|
||||
import { gettext, enableFileTags } from '../../utils/constants';
|
||||
import { Utils } from '../../utils/utils';
|
||||
import TextTranslation from '../../utils/text-translation';
|
||||
import SeahubPopover from '../common/seahub-popover';
|
||||
@@ -71,7 +71,9 @@ class DirTool extends React.Component {
|
||||
return list;
|
||||
}
|
||||
const { TAGS } = TextTranslation;
|
||||
list.push(TAGS);
|
||||
if (enableFileTags) {
|
||||
list.push(TAGS);
|
||||
}
|
||||
return list;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user