diff options
Diffstat (limited to 'settings/src/components/appDetails.vue')
-rw-r--r-- | settings/src/components/appDetails.vue | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/settings/src/components/appDetails.vue b/settings/src/components/appDetails.vue index 5518fd04860..5467b1ffb10 100644 --- a/settings/src/components/appDetails.vue +++ b/settings/src/components/appDetails.vue @@ -22,6 +22,7 @@ <template> <div id="app-details-view" style="padding: 20px;"> + <a class="close icon-close" href="#" v-on:click="hideAppDetails"><span class="hidden-visually">Close</span></a> <h2>{{ app.name }}</h2> <img :src="app.preview" width="100%" /> <app-score v-if="app.ratingNumThresholdReached" :score="app.score"></app-score> @@ -66,11 +67,19 @@ import Multiselect from 'vue-multiselect'; import AppScore from './appList/appScore'; export default { name: 'appDetails', - props: ['app'], + props: ['category', 'app'], components: { Multiselect, AppScore }, + methods: { + hideAppDetails() { + this.$router.push({ + name: 'apps-category', + params: {category: this.category} + }); + }, + }, computed: { licence() { return this.app.license + t('settings', '-licensed'); |