diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-05-29 18:23:42 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-06-06 11:40:09 +0200 |
commit | 30cd8ed837d0e106c93b8ab3aa70cc4291f9df6c (patch) | |
tree | 7fc64f2cb4478d21260e4de1a671d8f9f7b32412 /settings/src/components | |
parent | 334f0ad61bf5bea8027c28146477b0ab157d0354 (diff) | |
download | nextcloud-server-30cd8ed837d0e106c93b8ab3aa70cc4291f9df6c.tar.gz nextcloud-server-30cd8ed837d0e106c93b8ab3aa70cc4291f9df6c.zip |
Proper rendering of bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings/src/components')
-rw-r--r-- | settings/src/components/appList.vue | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/settings/src/components/appList.vue b/settings/src/components/appList.vue index 2bec287a28e..ebaab914d88 100644 --- a/settings/src/components/appList.vue +++ b/settings/src/components/appList.vue @@ -27,16 +27,16 @@ </div> <div id="apps-list" class="installed" v-if="useBundleView"> - <template v-for="app in apps"> - <div class="apps-header" v-if="app.newCategory"> + <template v-for="bundle in bundles"> + <div class="apps-header"> <div class="app-image"></div> - <h2>{{ app.categoryName }} <input class="enable" type="button" value="Alle aktivieren"></h2> + <h2>{{ bundle.name }} <input class="enable" type="button" value="Alle aktivieren"></h2> <div class="app-version"></div> <div class="app-level"></div> <div class="app-groups"></div> <div class="actions"> </div> </div> - <app-item v-else :key="app.id" :app="app" :category="category"/> + <app-item v-for="app in bundleApps(bundle.id)" :key="app.id" :app="app" :category="category"/> </template> </div> @@ -82,6 +82,15 @@ export default { return this.$store.getters.getApps .filter(app => app.name.toLowerCase().search(this.search.toLowerCase()) !== -1) }, + bundles() { + return this.$store.getters.getServerData.bundles; + }, + bundleApps() { + return function(bundle) { + return this.$store.getters.getApps + .filter(app => app.bundleId === bundle); + } + }, searchApps() { if (this.search === '') { return []; |