From 75824bd139423d527820c81b60e0c43a6348e56f Mon Sep 17 00:00:00 2001 From: Renard Date: Mon, 16 Sep 2019 16:53:39 -0300 Subject: No mostrar formulario de respuesta si el hilo está cerrado --- src/ReplyForm.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/ReplyForm.js') diff --git a/src/ReplyForm.js b/src/ReplyForm.js index 70e5d49..1dab761 100644 --- a/src/ReplyForm.js +++ b/src/ReplyForm.js @@ -34,7 +34,7 @@ class ReplyForm extends Component { () => { const { submittedName, submittedEmail, submittedMessage } = this.state; const data = { - board: this.props.dir, + board: this.props.currentBoard.dir, parent: this.props.parent, name: "", email: "", @@ -67,6 +67,14 @@ class ReplyForm extends Component { render() { const { name, email, message, replyRes } = this.state; + if (this.props.locked === 1) { + return ( + + Hilo cerrado + Este hilo ha sido cerrado y no admite nuevas respuestas. + + ); + } return ( {replyRes !== null ? ( -- cgit v1.2.1-18-gbd029