summaryrefslogtreecommitdiffstats
path: root/settings/src
diff options
context:
space:
mode:
authorGreta Doci <gretadoci@gmail.com>2019-06-27 15:32:27 +0200
committerGreta Doci <gretadoci@gmail.com>2019-06-27 15:37:44 +0200
commit32abff5e77c80e0da89c957aa8b08348197a62d7 (patch)
tree686244973618204dc731cb532cac6740aa762751 /settings/src
parentc63f1d8d39f0ccae4483c6c37a1ecf7fa9040b81 (diff)
downloadnextcloud-server-32abff5e77c80e0da89c957aa8b08348197a62d7.tar.gz
nextcloud-server-32abff5e77c80e0da89c957aa8b08348197a62d7.zip
Remove duplicate close-icon
Signed-off-by: Greta Doci <gretadoci@gmail.com>
Diffstat (limited to 'settings/src')
-rw-r--r--settings/src/components/appDetails.vue9
-rw-r--r--settings/src/views/Apps.vue8
2 files changed, 7 insertions, 10 deletions
diff --git a/settings/src/components/appDetails.vue b/settings/src/components/appDetails.vue
index b4420e322e4..9d418564e39 100644
--- a/settings/src/components/appDetails.vue
+++ b/settings/src/components/appDetails.vue
@@ -22,7 +22,6 @@
<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>
<div v-if="!app.preview" class="icon-settings-dark"></div>
<svg v-if="app.previewAsIcon && app.preview" width="32" height="32" viewBox="0 0 32 32">
@@ -126,14 +125,6 @@ export default {
this.groupCheckedAppsData = true;
}
},
- methods: {
- hideAppDetails() {
- this.$router.push({
- name: 'apps-category',
- params: {category: this.category}
- });
- },
- },
computed: {
appstoreUrl() {
return `https://apps.nextcloud.com/apps/${this.app.id}`;
diff --git a/settings/src/views/Apps.vue b/settings/src/views/Apps.vue
index 9119170ef38..35caf7cea59 100644
--- a/settings/src/views/Apps.vue
+++ b/settings/src/views/Apps.vue
@@ -31,7 +31,7 @@
<AppContent class="app-settings-content" :class="{ 'icon-loading': loadingList }">
<AppList :category="category" :app="currentApp" :search="searchQuery" />
</AppContent>
- <AppSidebar v-if="id && currentApp" >
+ <AppSidebar v-if="id && currentApp" @close="hideAppDetails">
<AppDetails :category="category" :app="currentApp" />
</AppSidebar>
</Content>
@@ -79,6 +79,12 @@ export default {
},
resetSearch() {
this.setSearch('');
+ },
+ hideAppDetails() {
+ this.$router.push({
+ name: 'apps-category',
+ params: {category: this.category}
+ })
}
},
beforeMount() {