Merge pull request #16141 from nextcloud/fix/no-rating-no-score

Do not show app score if it has no ratings
This commit is contained in:
Morris Jobke 2019-07-02 16:33:41 +02:00 committed by GitHub
commit 85f371a9cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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: {