From a17191b896628a183eb291557a36c95a1bc14452 Mon Sep 17 00:00:00 2001
From: hjm <63528605@qq.com>
Date: Wed, 26 Jun 2019 15:34:52 +0800
Subject: [PATCH] showNotification
---
.../modules/courses/busyWork/common/WorkDetailPageHeader.js | 2 +-
.../src/modules/courses/common/comments/CCommentItem.js | 6 +++---
public/react/src/modules/courses/css/Courses.css | 1 +
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/public/react/src/modules/courses/busyWork/common/WorkDetailPageHeader.js b/public/react/src/modules/courses/busyWork/common/WorkDetailPageHeader.js
index 21bd2f241..c16d285dd 100644
--- a/public/react/src/modules/courses/busyWork/common/WorkDetailPageHeader.js
+++ b/public/react/src/modules/courses/busyWork/common/WorkDetailPageHeader.js
@@ -103,7 +103,7 @@ class WorkDetailPageHeader extends Component{
/>
- {category && 返回}
+ {category && 返回}
{this.props.update_atta &&
diff --git a/public/react/src/modules/courses/common/comments/CCommentItem.js b/public/react/src/modules/courses/common/comments/CCommentItem.js
index 45ebb364b..e4286e456 100644
--- a/public/react/src/modules/courses/common/comments/CCommentItem.js
+++ b/public/react/src/modules/courses/common/comments/CCommentItem.js
@@ -51,7 +51,7 @@ class CCommentItem extends Component{
})
.then((response) => {
if (response.data.status == 0) {
- this.showNotification('撤销成功')
+ this.props.showNotification('撤销成功')
this.props.replySuccess()
}
})
@@ -67,7 +67,7 @@ class CCommentItem extends Component{
let { item, commentIndex }=this.props;
if (!this.state.secondReplyContent || !this.state.secondReplyContent.trim()) {
- this.showNotification('内容不能为空')
+ this.props.showNotification('内容不能为空')
return;
}
if (this.state.show_reply) {
@@ -313,7 +313,7 @@ class CCommentItem extends Component{
{ item.is_invalid ? 失效 :
回复
- {(isAppealing || isAnonymous) && item.can_appeal && item.appeal_status == 0 && 申诉}
+ {(isAppealing || isAnonymous) && item.can_appeal && item.appeal_status == 0 && 申诉}
diff --git a/public/react/src/modules/courses/css/Courses.css b/public/react/src/modules/courses/css/Courses.css
index 805fc0f19..3579f983b 100644
--- a/public/react/src/modules/courses/css/Courses.css
+++ b/public/react/src/modules/courses/css/Courses.css
@@ -5,6 +5,7 @@ i.iconfont {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
+ display: inline-block;
}
/* BASICS */