From 805904360e73da1c303da4b7072f3f636cd08908 Mon Sep 17 00:00:00 2001 From: infiinte-persistence Date: Fri, 12 Jun 2020 17:18:04 +0200 Subject: [PATCH] Set "Description" field limit to 5000 characters. This applies to both Channel and Claim description. --- ui/component/channelEdit/view.jsx | 2 ++ ui/component/comment/view.jsx | 2 ++ ui/component/commentCreate/view.jsx | 2 ++ ui/component/common/form-components/form-field.jsx | 4 ++-- ui/component/publishText/view.jsx | 2 ++ ui/constants/form-field.js | 4 +++- 6 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ui/component/channelEdit/view.jsx b/ui/component/channelEdit/view.jsx index 312aa8a64..1311a1a3a 100644 --- a/ui/component/channelEdit/view.jsx +++ b/ui/component/channelEdit/view.jsx @@ -6,6 +6,7 @@ import SelectAsset from 'component/selectAsset'; import * as PAGES from 'constants/pages'; import { MINIMUM_PUBLISH_BID } from 'constants/claim'; import TagsSearch from 'component/tagsSearch'; +import { FF_MAX_CHARS_IN_DESCRIPTION } from 'constants/form-field'; type Props = { claim: ChannelClaim, @@ -173,6 +174,7 @@ function ChannelForm(props: Props) { value={params.description} disabled={false} onChange={text => setParams({ ...params, description: text })} + textAreaMaxLength={FF_MAX_CHARS_IN_DESCRIPTION} />