Add key and fix disabled apps listing

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

View File

@ -27,7 +27,7 @@
<app-item v-for="app in apps" :key="app.id" :app="app" :category="category" />
</template>
<template v-for="bundle in bundles" v-if="useBundleView && bundleApps(bundle.id).length > 0">
<div class="apps-header">
<div class="apps-header" :key="bundle.id">
<div class="app-image"></div>
<h2>{{ bundle.name }} <input type="button" :value="bundleToggleText(bundle.id)" v-on:click="toggleBundle(bundle.id)"></h2>
<div class="app-version"></div>
@ -99,7 +99,7 @@ export default {
return apps.filter(app => app.active);
}
if (this.category === 'disabled') {
return apps.filter(app => !app.active);
return apps.filter(app => !app.active && app.installed);
}
if (this.category === 'app-bundles') {
return apps.filter(app => app.bundles);