1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 23:00:57 +00:00

root path show file_tag && tagged_files_count (#2715)

This commit is contained in:
王健辉
2019-01-02 16:45:40 +08:00
committed by Daniel Pan
parent 1d675cfc45
commit 01bc288865
9 changed files with 198 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ import MarkdownContentViewer from '../../components/markdown-viewer';
import DirentListView from '../../components/dirent-list-view/dirent-list-view';
import DirentDetail from '../../components/dirent-detail/dirent-details';
import FileUploader from '../../components/file-uploader/file-uploader';
import FileTagsViewer from '../../components/filetags-viewer';
const propTypes = {
content: PropTypes.string,
@@ -55,6 +56,7 @@ const propTypes = {
goReviewPage: PropTypes.func,
goDraftPage: PropTypes.func,
reviewID: PropTypes.any,
usedRepoTags: PropTypes.array.isRequired,
};
class MainPanel extends Component {
@@ -229,6 +231,15 @@ class MainPanel extends Component {
/>
)}
</div>
{(this.props.usedRepoTags.length > 0 && this.props.path === '/') && (
<div className="tags-summary-bar">
<FileTagsViewer
repoID={repoID}
currentPath={this.props.path}
usedRepoTags={this.props.usedRepoTags}
/>
</div>
)}
<div className="cur-view-content" onScroll={this.handlePageScroll} ref="curViewContent">
{!this.props.pathExist ?
ErrMessage :