mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-14 14:21:23 +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;
|
||||
};
|
||||
|
||||
|
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
|
||||
import moment from 'moment';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import Icon from '../icon';
|
||||
import { gettext } from '../../utils/constants';
|
||||
import { gettext, enableFileTags } from '../../utils/constants';
|
||||
import { Utils } from '../../utils/utils';
|
||||
import EditFileTagPopover from '../popover/edit-filetag-popover';
|
||||
import FileTagList from '../file-tag-list';
|
||||
@@ -107,7 +107,9 @@ class DetailListView extends React.Component {
|
||||
<th>{gettext('Tags')}</th>
|
||||
<td>
|
||||
<FileTagList fileTagList={this.props.fileTagList} />
|
||||
<span onClick={this.onEditFileTagToggle} id={this.tagListTitleID}><Icon symbol='tag' /></span>
|
||||
{enableFileTags &&
|
||||
<span onClick={this.onEditFileTagToggle} id={this.tagListTitleID}><Icon symbol='tag' /></span>
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
{direntDetail.permission === 'rw' && window.app.pageOptions.enableMetadataManagement && (
|
||||
|
Reference in New Issue
Block a user