diff options
Diffstat (limited to 'settings/src/components/appDetails.vue')
-rw-r--r-- | settings/src/components/appDetails.vue | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/settings/src/components/appDetails.vue b/settings/src/components/appDetails.vue index 1595be7ac13..3370ee055e4 100644 --- a/settings/src/components/appDetails.vue +++ b/settings/src/components/appDetails.vue @@ -28,11 +28,11 @@ <app-score v-if="app.appstoreData && app.appstoreData.ratingNumOverall > 5" :score="app.appstoreData.ratingOverall"></app-score> <div class="app-author"> {{ t('settings', 'by') }} - <span v-if="author.length > 0" v-for="a in author"> - <a v-if="a['@attributes']['homepage']" :href="a['@attributes']['homepage']">{{ a['@value'] }}</a> + <span v-for="a in author"> + <a v-if="a['@attributes'] && a['@attributes']['homepage']" :href="a['@attributes']['homepage']">{{ a['@value'] }}</a> <span v-else>{{ a['@value'] }}</span> + </span> - <span v-else>{{ author }}</span> </div> {{ licence }} <div class="actions"> @@ -103,7 +103,6 @@ export default { }, computed: { groups() { - console.log(this.$store.getters.getGroups); return this.$store.getters.getGroups .filter(group => group.id !== 'disabled') .sort((a, b) => a.name.localeCompare(b.name)); @@ -112,8 +111,17 @@ export default { return this.app.license + t('settings', '-licensed'); }, author() { + if (typeof this.app.author === 'string') { + return [ + { + '@value': this.app.author + } + ] + } + if (this.app.author['@value']) { + return [this.app.author]; + } return this.app.author; - return t('settings', 'by') + ' ' + this.app.author; }, renderMarkdown() { // TODO: bundle marked as well |