Hide uninstalled apps when removing them
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
2f332651d3
commit
96e65c677b
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue