summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2020-01-24 12:50:06 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2020-01-27 17:16:20 +0100
commit9bff2e7f031fd3bdf9a41f8558c28f35a8298fad (patch)
treed316aab500ba350cca948a1efa5686afef30af49
parentc99c969d5598f1cf9304316907ab4f3f5597079b (diff)
downloadnextcloud-server-9bff2e7f031fd3bdf9a41f8558c28f35a8298fad.tar.gz
nextcloud-server-9bff2e7f031fd3bdf9a41f8558c28f35a8298fad.zip
apps can have polyamorous relationships with bundles
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--apps/settings/lib/Controller/AppSettingsController.php2
-rw-r--r--apps/settings/src/components/AppList.vue4
2 files changed, 4 insertions, 2 deletions
diff --git a/apps/settings/lib/Controller/AppSettingsController.php b/apps/settings/lib/Controller/AppSettingsController.php
index 80ba23594a3..a49b57185c3 100644
--- a/apps/settings/lib/Controller/AppSettingsController.php
+++ b/apps/settings/lib/Controller/AppSettingsController.php
@@ -219,7 +219,7 @@ class AppSettingsController extends Controller {
foreach($bundle->getAppIdentifiers() as $identifier) {
foreach($this->allApps as &$app) {
if($app['id'] === $identifier) {
- $app['bundleId'] = $bundle->getIdentifier();
+ $app['bundleIds'][] = $bundle->getIdentifier();
continue;
}
}
diff --git a/apps/settings/src/components/AppList.vue b/apps/settings/src/components/AppList.vue
index 2fecf137dd8..5a0e570742f 100644
--- a/apps/settings/src/components/AppList.vue
+++ b/apps/settings/src/components/AppList.vue
@@ -158,7 +158,9 @@ export default {
bundleApps() {
return function(bundle) {
return this.$store.getters.getAllApps
- .filter(app => app.bundleId === bundle)
+ .filter(app => {
+ return app.bundleIds !== undefined && app.bundleIds.includes(bundle)
+ })
}
},
searchApps() {