mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 18:29:23 +00:00
notice bug repair (#3178)
This commit is contained in:
@@ -182,10 +182,12 @@ class NoticeItem extends React.Component {
|
|||||||
notice = notice.replace('{draft_link}', draftLink);
|
notice = notice.replace('{draft_link}', draftLink);
|
||||||
return {avatar_url, notice};
|
return {avatar_url, notice};
|
||||||
}
|
}
|
||||||
|
|
||||||
// if (noticeType === MSG_TYPE_GUEST_INVITATION_ACCEPTED) {
|
// if (noticeType === MSG_TYPE_GUEST_INVITATION_ACCEPTED) {
|
||||||
|
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
return {avatar_url : null, notice : null};
|
||||||
}
|
}
|
||||||
|
|
||||||
onNoticeItemClick = () => {
|
onNoticeItemClick = () => {
|
||||||
@@ -200,6 +202,10 @@ class NoticeItem extends React.Component {
|
|||||||
let noticeItem = this.props.noticeItem;
|
let noticeItem = this.props.noticeItem;
|
||||||
let { avatar_url, notice } = this.generatorNoticeInfo();
|
let { avatar_url, notice } = this.generatorNoticeInfo();
|
||||||
|
|
||||||
|
if (!avatar_url && !notice) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<li onClick={this.onNoticeItemClick} className={noticeItem.seen ? 'read' : 'unread'}>
|
<li onClick={this.onNoticeItemClick} className={noticeItem.seen ? 'read' : 'unread'}>
|
||||||
<div className="notice-item">
|
<div className="notice-item">
|
||||||
|
Reference in New Issue
Block a user