From 96e65c677be77315cd6b6f5a3a0819b04803ebf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 4 Jul 2018 13:35:18 +0200 Subject: [PATCH] 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(-) diff --git a/settings/src/components/appList.vue b/settings/src/components/appList.vue index dd19c44d88..053c6056ba 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 2247e68996..c4539b14d9 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; },