diff --git a/frontend/src/components/dialog/file-participant-dialog.js b/frontend/src/components/dialog/file-participant-dialog.js index c28679c98e..54f311b7ae 100644 --- a/frontend/src/components/dialog/file-participant-dialog.js +++ b/frontend/src/components/dialog/file-participant-dialog.js @@ -33,7 +33,7 @@ class FileParticipantListItem extends Component { const { participant } = this.props; return (
-
+
{participant.name}
diff --git a/frontend/src/components/dirent-detail/detail-comments-list.js b/frontend/src/components/dirent-detail/detail-comments-list.js index 66f91154b7..5b49d0a110 100644 --- a/frontend/src/components/dirent-detail/detail-comments-list.js +++ b/frontend/src/components/dirent-detail/detail-comments-list.js @@ -7,6 +7,7 @@ import { gettext } from '../../utils/constants'; import { seafileAPI } from '../../utils/seafile-api'; import { Utils } from '../../utils/utils'; import toaster from '../toast'; +import ParticipantsList from '../file-view/participants-list'; import '../../css/comments-list.css'; const { username } = window.app.pageOptions; @@ -14,6 +15,8 @@ const { username } = window.app.pageOptions; const DetailCommentListPropTypes = { repoID: PropTypes.string.isRequired, filePath: PropTypes.string.isRequired, + onParticipantsChange: PropTypes.func.isRequired, + fileParticipantList: PropTypes.array.isRequired, }; class DetailCommentList extends React.Component { @@ -93,6 +96,7 @@ class DetailCommentList extends React.Component { } render() { + const { repoID, filePath, fileParticipantList } = this.props; return (
    @@ -114,6 +118,15 @@ class DetailCommentList extends React.Component {
  • {gettext('No comment yet.')}
  • }
+ {fileParticipantList && + + }