mirror of https://github.com/LemmyNet/lemmy.git
Adding options below comment searches. Fixes #412
parent
3f4cce99ed
commit
66f0683160
|
@ -82,14 +82,7 @@ export class Search extends Component<any, SearchState> {
|
||||||
this.handleSortChange = this.handleSortChange.bind(this);
|
this.handleSortChange = this.handleSortChange.bind(this);
|
||||||
|
|
||||||
this.subscription = WebSocketService.Instance.subject
|
this.subscription = WebSocketService.Instance.subject
|
||||||
.pipe(
|
.pipe(retryWhen(errors => errors.pipe(delay(3000), take(10))))
|
||||||
retryWhen(errors =>
|
|
||||||
errors.pipe(
|
|
||||||
delay(3000),
|
|
||||||
take(10)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
)
|
|
||||||
.subscribe(
|
.subscribe(
|
||||||
msg => this.parseMessage(msg),
|
msg => this.parseMessage(msg),
|
||||||
err => console.error(err),
|
err => console.error(err),
|
||||||
|
@ -266,7 +259,7 @@ export class Search extends Component<any, SearchState> {
|
||||||
{i.type_ == 'comments' && (
|
{i.type_ == 'comments' && (
|
||||||
<CommentNodes
|
<CommentNodes
|
||||||
nodes={[{ comment: i.data as Comment }]}
|
nodes={[{ comment: i.data as Comment }]}
|
||||||
viewOnly
|
locked
|
||||||
noIndent
|
noIndent
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
@ -317,7 +310,7 @@ export class Search extends Component<any, SearchState> {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{this.state.searchResponse.comments.map(comment => (
|
{this.state.searchResponse.comments.map(comment => (
|
||||||
<CommentNodes nodes={[{ comment: comment }]} noIndent viewOnly />
|
<CommentNodes nodes={[{ comment: comment }]} locked noIndent />
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue