[web] Remove redundancy in the displayed texts

This commit is contained in:
Alain Nussbaumer
2024-03-25 18:11:09 +01:00
parent 36842dfc04
commit dc3785888b
6 changed files with 28 additions and 67 deletions

View File

@@ -69,7 +69,7 @@
</p>
</nav>
<p v-if="!results[type].total" class="has-text-centered-mobile">
<i v-text="$t('page.search.no-tracks')" />
<i v-text="$t('page.search.no-results')" />
</p>
</template>
</content-with-heading>

View File

@@ -63,7 +63,7 @@
@click="open_search(type)"
v-text="
$t(
`page.spotify.search.show-all-${type}s`,
`page.spotify.search.show-${type}s`,
results[type].total,
{
count: $filters.number(results[type].total)
@@ -74,7 +74,7 @@
</p>
</nav>
<p v-if="!results[type].total" class="has-text-centered-mobile">
<i v-text="$t(`page.spotify.search.no-${type}s`)" />
<i v-text="$t(`page.spotify.search.no-results`)" />
</p>
</template>
</content-with-heading>
@@ -170,10 +170,7 @@ export default {
open_search(type) {
this.$router.push({
name: 'search-spotify',
query: {
query: this.$route.query.query,
type
}
query: { query: this.$route.query.query, type }
})
},
reset() {