mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 14:45:20 +00:00
Merge pull request #302 from LemmyNet/comment_here
Comment here placeholder
This commit is contained in:
commit
32b8005879
|
@ -1 +1 @@
|
||||||
Subproject commit f71b91b83cd622909a499927a9d99a6e7999b3e2
|
Subproject commit 8a91766fcf499712dafb702aea7da29a54e12afb
|
|
@ -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