1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2024-12-13 22:00:28 +05:30

Add support for rendering search corrections.

This commit is contained in:
FireMaskterK 2021-10-10 02:20:00 +01:00 committed by Filipe Medeiros
parent 18f9cbe060
commit 8fa3f9d501
2 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,15 @@
<hr />
<div v-if="results && results.corrected" style="height: 7vh">
{{ $t("search.did_you_mean") }}
<i>
<router-link :to="{ name: 'SearchResults', query: { search_query: results.suggestion } }">
{{ results.suggestion }}
</router-link>
</i>
</div>
<div v-if="results" class="uk-grid-xl" uk-grid="parallax: 0">
<div
v-for="result in results.items"

View File

@ -85,5 +85,8 @@
"views": "views",
"watched": "Watched",
"sponsor_segments": "Sponsors Segments"
},
"search": {
"did_you_mean": "Did you mean: "
}
}