From 12f3e1ca5c892fd93fd130087ff46a323c3dede1 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Fri, 18 May 2018 18:22:26 +0300 Subject: [PATCH] leave rss links in the main comment form only --- web/app/components/input/input.jsx | 25 +++++++++++++++---------- web/app/components/root/root.jsx | 1 + 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/web/app/components/input/input.jsx b/web/app/components/input/input.jsx index 28c5370c..1d4444a4 100644 --- a/web/app/components/input/input.jsx +++ b/web/app/components/input/input.jsx @@ -110,6 +110,7 @@ export default class Input extends Component { render(props, { isFieldDisabled, isErrorShown, preview, maxLength, commentLength }) { const charactersLeft = maxLength - commentLength; + const { mods = {} } = props; return (
@@ -147,16 +148,20 @@ export default class Input extends Component { type="submit" >Send -
- Subscribe to this - {' '} - Thread - {' '} - or  - Site - {' '} - by RSS -
+ { + mods.type === 'main' && ( +
+ Subscribe to this + {' '} + Thread + {' '} + or  + Site + {' '} + by RSS +
+ ) + } { diff --git a/web/app/components/root/root.jsx b/web/app/components/root/root.jsx index c9095765..4b36dc92 100644 --- a/web/app/components/root/root.jsx +++ b/web/app/components/root/root.jsx @@ -206,6 +206,7 @@ export default class Root extends Component { !isGuest && ( )