summaryrefslogtreecommitdiffstats
path: root/ui/src/components/search.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-01-13 23:04:47 -0500
committerDessalines <tyhou13@gmx.com>2020-01-13 23:04:47 -0500
commiteccd8260888dbd5cdc910d115586a6659ed97455 (patch)
treee5889195bb28a750ba0d4d18668da483ede6dec7 /ui/src/components/search.tsx
parentf31c7816938808e3bab133d1cb7d842fef2e4c8e (diff)
Adding options below comment searches. Fixes #412
Diffstat (limited to 'ui/src/components/search.tsx')
-rw-r--r--ui/src/components/search.tsx13
1 files changed, 3 insertions, 10 deletions
diff --git a/ui/src/components/search.tsx b/ui/src/components/search.tsx
index 00c670d8..70219d4e 100644
--- a/ui/src/components/search.tsx
+++ b/ui/src/components/search.tsx
@@ -82,14 +82,7 @@ export class Search extends Component<any, SearchState> {
this.handleSortChange = this.handleSortChange.bind(this);
this.subscription = WebSocketService.Instance.subject
- .pipe(
- retryWhen(errors =>
- errors.pipe(
- delay(3000),
- take(10)
- )
- )
- )
+ .pipe(retryWhen(errors => errors.pipe(delay(3000), take(10))))
.subscribe(
msg => this.parseMessage(msg),
err => console.error(err),
@@ -266,7 +259,7 @@ export class Search extends Component<any, SearchState> {
{i.type_ == 'comments' && (
<CommentNodes
nodes={[{ comment: i.data as Comment }]}
- viewOnly
+ locked
noIndent
/>
)}
@@ -317,7 +310,7 @@ export class Search extends Component<any, SearchState> {
return (
<div>
{this.state.searchResponse.comments.map(comment => (
- <CommentNodes nodes={[{ comment: comment }]} noIndent viewOnly />
+ <CommentNodes nodes={[{ comment: comment }]} locked noIndent />
))}
</div>
);