disabled advanced editor for comment replies
This commit is contained in:
parent
d301102af6
commit
be10041ea4
1 changed files with 3 additions and 3 deletions
|
@ -102,11 +102,11 @@ export function CommentCreate(props: Props) {
|
||||||
{!isReply && <ChannelSelection channel={channel} hideAnon onChannelChange={handleChannelChange} />}
|
{!isReply && <ChannelSelection channel={channel} hideAnon onChannelChange={handleChannelChange} />}
|
||||||
<FormField
|
<FormField
|
||||||
disabled={channel === CHANNEL_NEW}
|
disabled={channel === CHANNEL_NEW}
|
||||||
type={advancedEditor ? 'markdown' : 'textarea'}
|
type={advancedEditor && !isReply ? 'markdown' : 'textarea'}
|
||||||
name={isReply ? 'content_reply' : 'content_description'}
|
name={isReply ? 'content_reply' : 'content_description'}
|
||||||
label={isReply ? __('Replying as %reply_channel%', { reply_channel: channel }) : __('Comment')}
|
label={isReply ? __('Replying as %reply_channel%', { reply_channel: channel }) : __('Comment')}
|
||||||
quickActionLabel={advancedEditor ? __('Simple Editor') : __('Advanced Editor')}
|
quickActionLabel={isReply ? undefined : advancedEditor ? __('Simple Editor') : __('Advanced Editor')}
|
||||||
quickActionHandler={toggleEditorMode}
|
quickActionHandler={isReply ? toggleEditorMode : undefined}
|
||||||
onFocus={onTextareaFocus}
|
onFocus={onTextareaFocus}
|
||||||
placeholder={__('Say something about this...')}
|
placeholder={__('Say something about this...')}
|
||||||
value={commentValue}
|
value={commentValue}
|
||||||
|
|
Loading…
Reference in a new issue