Hide uninstalled apps when removing them

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-07-04 13:35:18 +02:00
parent 2f332651d3
commit 96e65c677b
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
2 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,7 @@ export default {
return apps.filter(app => app.installed); return apps.filter(app => app.installed);
} }
if (this.category === 'enabled') { if (this.category === 'enabled') {
return apps.filter(app => app.active); return apps.filter(app => app.active && app.installed);
} }
if (this.category === 'disabled') { if (this.category === 'disabled') {
return apps.filter(app => !app.active && app.installed); return apps.filter(app => !app.active && app.installed);

View File

@ -90,6 +90,7 @@ const mutations = {
state.apps.find(app => app.id === appId).active = false; state.apps.find(app => app.id === appId).active = false;
state.apps.find(app => app.id === appId).groups = []; state.apps.find(app => app.id === appId).groups = [];
state.apps.find(app => app.id === appId).needsDownload = true; 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).canUnInstall = false;
state.apps.find(app => app.id === appId).canInstall = true; state.apps.find(app => app.id === appId).canInstall = true;
}, },