From 88184fbc54648bc6968d148acd1c606ea43ba221 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Mon, 7 Jan 2019 00:32:03 +0200 Subject: [PATCH] add link to replies rss --- web/app/components/input/input.jsx | 13 +++++++++---- web/app/components/root/root.jsx | 4 +++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/web/app/components/input/input.jsx b/web/app/components/input/input.jsx index 8fe1aa55..1fc54368 100644 --- a/web/app/components/input/input.jsx +++ b/web/app/components/input/input.jsx @@ -10,6 +10,7 @@ import TextareaAutosize from 'components/input/textarea-autosize'; const RSS_THREAD_URL = `${BASE_URL}${API_BASE}/rss/post?site=${siteId}&url=${url}`; const RSS_SITE_URL = `${BASE_URL}${API_BASE}/rss/site?site=${siteId}`; +const RSS_REPLIES_URL = `${BASE_URL}${API_BASE}/rss/reply?site=${siteId}&user=`; export default class Input extends Component { constructor(props) { @@ -109,7 +110,7 @@ export default class Input extends Component { render(props, { isDisabled, isErrorShown, preview, maxLength, text }) { const charactersLeft = maxLength - text.length; - const { mods = {}, errorMessage } = props; + const { mods = {}, errorMessage, userId } = props; return (
@@ -156,14 +157,18 @@ export default class Input extends Component { {' '} is supported - Subscribe to this{' '} + Subscribe to the{' '} Thread - {' '} - or  + + {', '} Site {' '} + or  + + Replies + {' '} by RSS )} diff --git a/web/app/components/root/root.jsx b/web/app/components/root/root.jsx index 88ce933b..d9cc7670 100644 --- a/web/app/components/root/root.jsx +++ b/web/app/components/root/root.jsx @@ -299,7 +299,9 @@ export default class Root extends Component { {!isBlockedVisible && (
{!isGuest && - !isCommentsDisabled && } + !isCommentsDisabled && ( + + )} {!!pinnedComments.length && (