diff options
author | Dessalines <happydooby@gmail.com> | 2019-08-09 15:52:32 -0700 |
---|---|---|
committer | Dessalines <happydooby@gmail.com> | 2019-08-09 15:52:32 -0700 |
commit | f896bb846ae4192d4ad3ed0e7920410d9f66ea0f (patch) | |
tree | 1b7095024b88b6788bc699ce9c9096d907811de9 /ui/src/components/comment-node.tsx | |
parent | 2db71bf1dd3b8d8499bd0f445485bb8e176ccf98 (diff) |
Second front end pass.
Diffstat (limited to 'ui/src/components/comment-node.tsx')
-rw-r--r-- | ui/src/components/comment-node.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ui/src/components/comment-node.tsx b/ui/src/components/comment-node.tsx index a05286ed..a1ac93b3 100644 --- a/ui/src/components/comment-node.tsx +++ b/ui/src/components/comment-node.tsx @@ -195,10 +195,10 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> { {/* TODO hold off on expires until later */} {/* <div class="form-group row"> */} {/* <label class="col-form-label">Expires</label> */} - {/* <input type="date" class="form-control mr-2" placeholder="Expires" value={this.state.banExpires} onInput={linkEvent(this, this.handleModBanExpiresChange)} /> */} + {/* <input type="date" class="form-control mr-2" placeholder={i18n.t('expires')} value={this.state.banExpires} onInput={linkEvent(this, this.handleModBanExpiresChange)} /> */} {/* </div> */} <div class="form-group row"> - <button type="submit" class="btn btn-secondary">Ban {this.props.node.comment.creator_name}</button> + <button type="submit" class="btn btn-secondary">{i18n.t('ban')} {this.props.node.comment.creator_name}</button> </div> </form> } @@ -389,9 +389,6 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> { handleModBanBothSubmit(i: CommentNode) { event.preventDefault(); - console.log(BanType[i.state.banType]); - console.log(i.props.node.comment.banned); - if (i.state.banType == BanType.Community) { let form: BanFromCommunityForm = { user_id: i.props.node.comment.creator_id, |