Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-07-04 14:35:18 +0300
committerJulius Härtl <jus@bitgrid.net>2018-07-04 16:40:51 +0300
commit96e65c677be77315cd6b6f5a3a0819b04803ebf6 (patch)
tree02cf15194efffae756f49eca1cee73e357fc95b1 /settings
parent2f332651d3c431b4a3b24b377dc45dcd54e7efce (diff)
Hide uninstalled apps when removing them
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings')
-rw-r--r--settings/src/components/appList.vue2
-rw-r--r--settings/src/store/apps.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/settings/src/components/appList.vue b/settings/src/components/appList.vue
index dd19c44d885..053c6056ba9 100644
--- a/settings/src/components/appList.vue
+++ b/settings/src/components/appList.vue
@@ -101,7 +101,7 @@ export default {
return apps.filter(app => app.installed);
}
if (this.category === 'enabled') {
- return apps.filter(app => app.active);
+ return apps.filter(app => app.active && app.installed);
}
if (this.category === 'disabled') {
return apps.filter(app => !app.active && app.installed);
diff --git a/settings/src/store/apps.js b/settings/src/store/apps.js
index 2247e68996c..c4539b14d93 100644
--- a/settings/src/store/apps.js
+++ b/settings/src/store/apps.js
@@ -90,6 +90,7 @@ const mutations = {
state.apps.find(app => app.id === appId).active = false;
state.apps.find(app => app.id === appId).groups = [];
state.apps.find(app => app.id === appId).needsDownload = true;
+ state.apps.find(app => app.id === appId).installed = false;
state.apps.find(app => app.id === appId).canUnInstall = false;
state.apps.find(app => app.id === appId).canInstall = true;
},