From c30af9bfe6bad34d79c3106789acf2446c43ff4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 5 Jun 2018 18:02:03 +0200 Subject: [PATCH] Remove space if no rating is available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- settings/src/components/appDetails.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/settings/src/components/appDetails.vue b/settings/src/components/appDetails.vue index a3510ee918..5452715c0e 100644 --- a/settings/src/components/appDetails.vue +++ b/settings/src/components/appDetails.vue @@ -31,11 +31,11 @@ {{ app.name }} -
- + {{ t('settings', 'Official') }} - +
@@ -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 [