diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2021-09-08 23:43:17 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2021-10-12 11:47:33 +0000 |
commit | 1237d64bdba24efdc219a4198c5bf82289d4d668 (patch) | |
tree | a98fb65b33ba9d4b8f75e4b4ba40eb02e43e20d6 /apps | |
parent | bb56e9df556873277fd271cd0ac876a2790054f7 (diff) | |
download | nextcloud-server-1237d64bdba24efdc219a4198c5bf82289d4d668.tar.gz nextcloud-server-1237d64bdba24efdc219a4198c5bf82289d4d668.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 4d22e90f645..059d2d99079 100644 --- a/apps/settings/lib/Controller/AppSettingsController.php +++ b/apps/settings/lib/Controller/AppSettingsController.php @@ -205,6 +205,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)) { @@ -212,6 +213,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 |