]> source.dussan.org Git - nextcloud-server.git/commitdiff
Also show updates on the "enabled" page 2307/head
authorLukas Reschke <lukas@statuscode.ch>
Thu, 24 Nov 2016 14:04:23 +0000 (15:04 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Thu, 24 Nov 2016 14:04:23 +0000 (15:04 +0100)
The enabled page doesn't pass through "getAppsForCategory" thus it also needs to have that special logic applied.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
settings/Controller/AppSettingsController.php

index 8d12b2a85a2b866aff8aef4e38eb120e815070b4..a665532a3b7b933bf7f3388d6550bef019582ebd 100644 (file)
@@ -273,6 +273,12 @@ class AppSettingsController extends Controller {
                                $apps = array_filter($apps, function ($app) {
                                        return $app['active'];
                                });
+
+                               foreach($apps as $key => $app) {
+                                       $newVersion = \OC\Installer::isUpdateAvailable($app['id'], $this->appFetcher);
+                                       $apps[$key]['update'] = $newVersion;
+                               }
+
                                usort($apps, function ($a, $b) {
                                        $a = (string)$a['name'];
                                        $b = (string)$b['name'];