mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 07:41:13 +00:00
Adding a comment here placeholder. Fixes #301
This commit is contained in:
parent
398befb439
commit
76dd9b1b77
2 changed files with 3 additions and 0 deletions
|
@ -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">
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue