Remove space if no rating is available
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
facce73c7f
commit
c30af9bfe6
|
@ -31,11 +31,11 @@
|
||||||
</svg>
|
</svg>
|
||||||
{{ app.name }}</h2>
|
{{ app.name }}</h2>
|
||||||
<img v-if="app.screenshot" :src="app.screenshot" width="100%" />
|
<img v-if="app.screenshot" :src="app.screenshot" width="100%" />
|
||||||
<div class="app-level">
|
<div class="app-level" v-if="app.level === 200 || hasRating">
|
||||||
<span class="official icon-checkmark" v-if="app.level === 200"
|
<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.')">
|
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>
|
{{ 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>
|
||||||
|
|
||||||
<div class="app-author" v-if="author">
|
<div class="app-author" v-if="author">
|
||||||
|
@ -135,6 +135,9 @@ export default {
|
||||||
return ('' + this.app.licence).toUpperCase() + t('settings', '-licensed');
|
return ('' + this.app.licence).toUpperCase() + t('settings', '-licensed');
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
hasRating() {
|
||||||
|
return this.app.appstoreData && this.app.appstoreData.ratingNumOverall > 5;
|
||||||
|
},
|
||||||
author() {
|
author() {
|
||||||
if (typeof this.app.author === 'string') {
|
if (typeof this.app.author === 'string') {
|
||||||
return [
|
return [
|
||||||
|
|
Loading…
Reference in New Issue