diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-07-04 13:35:18 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-07-04 15:40:51 +0200 |
commit | 96e65c677be77315cd6b6f5a3a0819b04803ebf6 (patch) | |
tree | 02cf15194efffae756f49eca1cee73e357fc95b1 /settings/src | |
parent | 2f332651d3c431b4a3b24b377dc45dcd54e7efce (diff) | |
download | nextcloud-server-96e65c677be77315cd6b6f5a3a0819b04803ebf6.tar.gz nextcloud-server-96e65c677be77315cd6b6f5a3a0819b04803ebf6.zip |
Hide uninstalled apps when removing them
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings/src')
-rw-r--r-- | settings/src/components/appList.vue | 2 | ||||
-rw-r--r-- | settings/src/store/apps.js | 1 |
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; }, |