]> Untitled Git - lemmy.git/commitdiff
Removing expires temporarily until they can be figured out.
authorDessalines <tyhou13@gmx.com>
Mon, 22 Apr 2019 17:45:50 +0000 (10:45 -0700)
committerDessalines <tyhou13@gmx.com>
Mon, 22 Apr 2019 17:45:50 +0000 (10:45 -0700)
ui/src/components/comment-node.tsx
ui/src/components/navbar.tsx
ui/src/components/sidebar.tsx

index 415dad77b49ddbdc449dc6de5a65f0d1487e769d..badbcd12c160c75a6a32aba21a44d3b2309c4ef5 100644 (file)
@@ -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>
index 33a330255d2b23b5a51378f8b9e9108ef4203866..77ffa9af71c266a33c2f2f8893a44c9ba1c8f43d 100644 (file)
@@ -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;
index 3644903c62706b359634b353808133fa126607e5..0d9715c4d2a71d0f4a24132998314c15c90bcf9a 100644 (file)
@@ -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>