Do not show app score if it has no ratings
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
ca76d13c78
commit
48761ae2c0
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -48,7 +48,7 @@
|
|||
<span class="official icon-checkmark" v-if="app.level === 200"
|
||||
v-tooltip.auto="t('settings', 'Official apps are developed by and within the community. They offer central functionality and are ready for production use.')">
|
||||
{{ t('settings', 'Official') }}</span>
|
||||
<app-score v-if="!listView" :score="app.score"></app-score>
|
||||
<app-score v-if="hasRating && !listView" :score="app.score"></app-score>
|
||||
</div>
|
||||
|
||||
<div class="actions">
|
||||
|
@ -97,7 +97,9 @@
|
|||
this.isSelected = (this.app.id === this.$route.params.id);
|
||||
},
|
||||
computed: {
|
||||
|
||||
hasRating() {
|
||||
return this.app.appstoreData && this.app.appstoreData.ratingNumOverall > 5;
|
||||
},
|
||||
},
|
||||
watchers: {
|
||||
|
||||
|
|
Loading…
Reference in New Issue