mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-12 12:10:32 +00:00
Removing expires temporarily until they can be figured out.
This commit is contained in:
parent
466f988f47
commit
2e361aa736
3 changed files with 10 additions and 9 deletions
|
@ -178,10 +178,11 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
|
||||||
<label class="col-form-label">Reason</label>
|
<label class="col-form-label">Reason</label>
|
||||||
<input type="text" class="form-control mr-2" placeholder="Optional" value={this.state.banReason} onInput={linkEvent(this, this.handleModBanReasonChange)} />
|
<input type="text" class="form-control mr-2" placeholder="Optional" value={this.state.banReason} onInput={linkEvent(this, this.handleModBanReasonChange)} />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
{/* TODO hold off on expires until later */}
|
||||||
<label class="col-form-label">Expires</label>
|
{/* <div class="form-group row"> */}
|
||||||
<input type="date" class="form-control mr-2" placeholder="Expires" value={this.state.banExpires} onInput={linkEvent(this, this.handleModBanExpiresChange)} />
|
{/* <label class="col-form-label">Expires</label> */}
|
||||||
</div>
|
{/* <input type="date" class="form-control mr-2" placeholder="Expires" value={this.state.banExpires} onInput={linkEvent(this, this.handleModBanExpiresChange)} /> */}
|
||||||
|
{/* </div> */}
|
||||||
<div class="form-group row">
|
<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">Ban {this.props.node.comment.creator_name}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -141,7 +141,6 @@ export class Navbar extends Component<any, NavbarState> {
|
||||||
parseMessage(msg: any) {
|
parseMessage(msg: any) {
|
||||||
let op: UserOperation = msgOp(msg);
|
let op: UserOperation = msgOp(msg);
|
||||||
if (msg.error) {
|
if (msg.error) {
|
||||||
alert(msg.error);
|
|
||||||
return;
|
return;
|
||||||
} else if (op == UserOperation.GetReplies) {
|
} else if (op == UserOperation.GetReplies) {
|
||||||
let res: GetRepliesResponse = msg;
|
let res: GetRepliesResponse = msg;
|
||||||
|
|
|
@ -87,10 +87,11 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
||||||
<label class="col-form-label">Reason</label>
|
<label class="col-form-label">Reason</label>
|
||||||
<input type="text" class="form-control mr-2" placeholder="Optional" value={this.state.removeReason} onInput={linkEvent(this, this.handleModRemoveReasonChange)} />
|
<input type="text" class="form-control mr-2" placeholder="Optional" value={this.state.removeReason} onInput={linkEvent(this, this.handleModRemoveReasonChange)} />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group row">
|
{/* TODO hold off on expires for now */}
|
||||||
<label class="col-form-label">Expires</label>
|
{/* <div class="form-group row"> */}
|
||||||
<input type="date" class="form-control mr-2" placeholder="Expires" value={this.state.removeExpires} onInput={linkEvent(this, this.handleModRemoveExpiresChange)} />
|
{/* <label class="col-form-label">Expires</label> */}
|
||||||
</div>
|
{/* <input type="date" class="form-control mr-2" placeholder="Expires" value={this.state.removeExpires} onInput={linkEvent(this, this.handleModRemoveExpiresChange)} /> */}
|
||||||
|
{/* </div> */}
|
||||||
<div class="form-group row">
|
<div class="form-group row">
|
||||||
<button type="submit" class="btn btn-secondary">Remove Community</button>
|
<button type="submit" class="btn btn-secondary">Remove Community</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue