summaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2019-04-22 10:45:50 -0700
committerDessalines <tyhou13@gmx.com>2019-04-22 10:45:50 -0700
commit2e361aa7364b81a245115a298301a753a808b3fd (patch)
tree087194ebc39433ad8b7abdf5751c95e6716182f7 /ui
parent466f988f47d858274c6de562a2ecc4ec6466bd4d (diff)
Removing expires temporarily until they can be figured out.
Diffstat (limited to 'ui')
-rw-r--r--ui/src/components/comment-node.tsx9
-rw-r--r--ui/src/components/navbar.tsx1
-rw-r--r--ui/src/components/sidebar.tsx9
3 files changed, 10 insertions, 9 deletions
diff --git a/ui/src/components/comment-node.tsx b/ui/src/components/comment-node.tsx
index 415dad77..badbcd12 100644
--- a/ui/src/components/comment-node.tsx
+++ b/ui/src/components/comment-node.tsx
@@ -178,10 +178,11 @@ export class CommentNode extends Component<CommentNodeProps, CommentNodeState> {
<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)} />
</div>
- <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)} />
- </div>
+ {/* 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)} /> */}
+ {/* </div> */}
<div class="form-group row">
<button type="submit" class="btn btn-secondary">Ban {this.props.node.comment.creator_name}</button>
</div>
diff --git a/ui/src/components/navbar.tsx b/ui/src/components/navbar.tsx
index 33a33025..77ffa9af 100644
--- a/ui/src/components/navbar.tsx
+++ b/ui/src/components/navbar.tsx
@@ -141,7 +141,6 @@ export class Navbar extends Component<any, NavbarState> {
parseMessage(msg: any) {
let op: UserOperation = msgOp(msg);
if (msg.error) {
- alert(msg.error);
return;
} else if (op == UserOperation.GetReplies) {
let res: GetRepliesResponse = msg;
diff --git a/ui/src/components/sidebar.tsx b/ui/src/components/sidebar.tsx
index 3644903c..0d9715c4 100644
--- a/ui/src/components/sidebar.tsx
+++ b/ui/src/components/sidebar.tsx
@@ -87,10 +87,11 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
<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)} />
</div>
- <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.removeExpires} onInput={linkEvent(this, this.handleModRemoveExpiresChange)} />
- </div>
+ {/* TODO hold off on expires for now */}
+ {/* <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.removeExpires} onInput={linkEvent(this, this.handleModRemoveExpiresChange)} /> */}
+ {/* </div> */}
<div class="form-group row">
<button type="submit" class="btn btn-secondary">Remove Community</button>
</div>