mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 20:31:13 +00:00
Adding URL search type. Fixes #286
This commit is contained in:
parent
e2a5a85c4e
commit
caeba89983
1 changed files with 2 additions and 0 deletions
|
@ -326,6 +326,7 @@ export class Search extends Component<any, SearchState> {
|
||||||
{this.state.type_ == SearchType.Posts && this.posts()}
|
{this.state.type_ == SearchType.Posts && this.posts()}
|
||||||
{this.state.type_ == SearchType.Communities && this.communities()}
|
{this.state.type_ == SearchType.Communities && this.communities()}
|
||||||
{this.state.type_ == SearchType.Users && this.users()}
|
{this.state.type_ == SearchType.Users && this.users()}
|
||||||
|
{this.state.type_ == SearchType.Url && this.posts()}
|
||||||
{this.resultsCount() == 0 && <span>{i18n.t("no_results")}</span>}
|
{this.resultsCount() == 0 && <span>{i18n.t("no_results")}</span>}
|
||||||
{this.paginator()}
|
{this.paginator()}
|
||||||
</div>
|
</div>
|
||||||
|
@ -374,6 +375,7 @@ export class Search extends Component<any, SearchState> {
|
||||||
{i18n.t("communities")}
|
{i18n.t("communities")}
|
||||||
</option>
|
</option>
|
||||||
<option value={SearchType.Users}>{i18n.t("users")}</option>
|
<option value={SearchType.Users}>{i18n.t("users")}</option>
|
||||||
|
<option value={SearchType.Url}>{i18n.t("url")}</option>
|
||||||
</select>
|
</select>
|
||||||
<span class="ml-2">
|
<span class="ml-2">
|
||||||
<ListingTypeSelect
|
<ListingTypeSelect
|
||||||
|
|
Loading…
Reference in a new issue