diff options
author | Björn Schießle <bjoern@schiessle.org> | 2021-10-12 10:52:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-12 10:52:58 +0200 |
commit | da1b97decda88893cc26539439a15050953419ae (patch) | |
tree | 2dbf55d143046a8fff0fd16e5dc3d536756e1722 /apps | |
parent | 0d2972cd721025dc4388f635a43b6b8311039ea5 (diff) | |
parent | 664bd5802f19c8e0768b64a6f66713d95a9aaab5 (diff) | |
download | nextcloud-server-da1b97decda88893cc26539439a15050953419ae.tar.gz nextcloud-server-da1b97decda88893cc26539439a15050953419ae.zip |
Merge pull request #29028 from nextcloud/add-supported-label-to-all-apps
add 'supported'-label to all supported apps
Diffstat (limited to 'apps')
-rw-r--r-- | apps/settings/lib/Controller/AppSettingsController.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/settings/lib/Controller/AppSettingsController.php b/apps/settings/lib/Controller/AppSettingsController.php index 78326c2e25a..5ed25ec2e2a 100644 --- a/apps/settings/lib/Controller/AppSettingsController.php +++ b/apps/settings/lib/Controller/AppSettingsController.php @@ -204,6 +204,7 @@ class AppSettingsController extends Controller { } $apps = $this->getAppsForCategory(''); + $supportedApps = $appClass->getSupportedApps(); foreach ($apps as $app) { $app['appstore'] = true; if (!array_key_exists($app['id'], $this->allApps)) { @@ -211,6 +212,10 @@ class AppSettingsController extends Controller { } else { $this->allApps[$app['id']] = array_merge($app, $this->allApps[$app['id']]); } + + if (in_array($app['id'], $supportedApps)) { + $this->allApps[$app['id']]['level'] = \OC_App::supportedApp; + } } // add bundle information |