From 96e65c677be77315cd6b6f5a3a0819b04803ebf6 Mon Sep 17 00:00:00 2001 From: Julius Härtl Date: Wed, 4 Jul 2018 13:35:18 +0200 Subject: Hide uninstalled apps when removing them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- settings/src/components/appList.vue | 2 +- settings/src/store/apps.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'settings/src') 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; }, -- cgit v1.2.3