Merge pull request #19116 from nextcloud/fix/19104/fix-bundle-view
apps can have polyamorous relationships with bundles
This commit is contained in:
commit
4e36157f3d
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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 New Issue