diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2021-09-08 23:43:17 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2021-10-06 22:17:50 +0200 |
commit | 664bd5802f19c8e0768b64a6f66713d95a9aaab5 (patch) | |
tree | 97a8cf85eac2db545986387b91ee67cd8e521342 /apps | |
parent | 9a569ff387f0f74af4b5423c1c1180a1d01fa7bd (diff) | |
download | nextcloud-server-664bd5802f19c8e0768b64a6f66713d95a9aaab5.tar.gz nextcloud-server-664bd5802f19c8e0768b64a6f66713d95a9aaab5.zip |
add 'supported'-label to all supported apps, also if they are not downloaded yet
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
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 |