mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
apps can have polyamorous relationships with bundles
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
2f27f122e1
commit
faf18b5f02
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue