Merge pull request #302 from LemmyNet/comment_here

Comment here placeholder
This commit is contained in:
Dessalines 2021-06-03 11:48:32 -04:00 committed by GitHub
commit 32b8005879
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

@ -1 +1 @@
Subproject commit f71b91b83cd622909a499927a9d99a6e7999b3e2 Subproject commit 8a91766fcf499712dafb702aea7da29a54e12afb

View file

@ -82,6 +82,7 @@ export class CommentForm extends Component<CommentFormProps, CommentFormState> {
disabled={this.props.disabled} disabled={this.props.disabled}
onSubmit={this.handleCommentSubmit} onSubmit={this.handleCommentSubmit}
onReplyCancel={this.handleReplyCancel} onReplyCancel={this.handleReplyCancel}
placeholder={i18n.t("comment_here")}
/> />
) : ( ) : (
<div class="alert alert-light" role="alert"> <div class="alert alert-light" role="alert">

View file

@ -28,6 +28,7 @@ interface MarkdownTextAreaProps {
onContentChange?(val: string): any; onContentChange?(val: string): any;
onReplyCancel?(): any; onReplyCancel?(): any;
hideNavigationWarnings?: boolean; hideNavigationWarnings?: boolean;
placeholder?: string;
} }
interface MarkdownTextAreaState { interface MarkdownTextAreaState {
@ -131,6 +132,7 @@ export class MarkdownTextArea extends Component<
disabled={this.props.disabled} disabled={this.props.disabled}
rows={2} rows={2}
maxLength={this.props.maxLength || 10000} maxLength={this.props.maxLength || 10000}
placeholder={this.props.placeholder}
/> />
{this.state.previewMode && ( {this.state.previewMode && (
<div <div