diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-06-05 18:02:03 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-06-06 11:40:09 +0200 |
commit | c30af9bfe6bad34d79c3106789acf2446c43ff4f (patch) | |
tree | be8148dc2ec327c4969e07b0f596f127d3866663 /settings/src | |
parent | facce73c7f32378e179327f60ac5454027eb0147 (diff) | |
download | nextcloud-server-c30af9bfe6bad34d79c3106789acf2446c43ff4f.tar.gz nextcloud-server-c30af9bfe6bad34d79c3106789acf2446c43ff4f.zip |
Remove space if no rating is available
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings/src')
-rw-r--r-- | settings/src/components/appDetails.vue | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/settings/src/components/appDetails.vue b/settings/src/components/appDetails.vue index a3510ee9182..5452715c0ea 100644 --- a/settings/src/components/appDetails.vue +++ b/settings/src/components/appDetails.vue @@ -31,11 +31,11 @@ </svg> {{ app.name }}</h2> <img v-if="app.screenshot" :src="app.screenshot" width="100%" /> - <div class="app-level"> - <span class="official icon-checkmark" v-if="app.level === 200" + <div class="app-level" v-if="app.level === 200 || hasRating"> + <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="app.appstoreData && app.appstoreData.ratingNumOverall > 5" :score="app.appstoreData.ratingOverall"></app-score> + <app-score v-if="hasRating" :score="app.appstoreData.ratingOverall"></app-score> </div> <div class="app-author" v-if="author"> @@ -135,6 +135,9 @@ export default { return ('' + this.app.licence).toUpperCase() + t('settings', '-licensed'); return null; }, + hasRating() { + return this.app.appstoreData && this.app.appstoreData.ratingNumOverall > 5; + }, author() { if (typeof this.app.author === 'string') { return [ |