diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-05-17 22:42:16 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-06-06 11:40:09 +0200 |
commit | d9d5e975d8f4671341f9c3b5ead85578a86b1c92 (patch) | |
tree | 6663fd5493f2511d82fffb9a7b1a7701e44eab7f /settings/Controller | |
parent | 125d1d3d4e7494a0982b1f2adec1e8de2b91b5f7 (diff) | |
download | nextcloud-server-d9d5e975d8f4671341f9c3b5ead85578a86b1c92.tar.gz nextcloud-server-d9d5e975d8f4671341f9c3b5ead85578a86b1c92.zip |
Remove default categories from route endpoint
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'settings/Controller')
-rw-r--r-- | settings/Controller/AppSettingsController.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/settings/Controller/AppSettingsController.php b/settings/Controller/AppSettingsController.php index 15b688736fa..413e54d6ce4 100644 --- a/settings/Controller/AppSettingsController.php +++ b/settings/Controller/AppSettingsController.php @@ -143,6 +143,7 @@ class AppSettingsController extends Controller { $params['category'] = $category; $params['appstoreEnabled'] = $this->config->getSystemValue('appstoreenabled', true) === true; $params['urlGenerator'] = $this->urlGenerator; + $params['updateCount'] = count($this->getAppsWithUpdates()); $this->navigationManager->setActiveEntry('core_apps'); $templateResponse = new TemplateResponse($this->appName, 'apps', $params, 'user'); @@ -158,14 +159,7 @@ class AppSettingsController extends Controller { private function getAllCategories() { $currentLanguage = substr($this->l10nFactory->findLanguage(), 0, 2); - $updateCount = count($this->getAppsWithUpdates()); - $formattedCategories = [ - ['id' => self::CAT_ALL_INSTALLED, 'ident' => 'installed', 'displayName' => (string)$this->l10n->t('Your apps')], - ['id' => self::CAT_UPDATES, 'ident' => 'updates', 'displayName' => (string)$this->l10n->t('Updates'), 'counter' => $updateCount], - ['id' => self::CAT_ENABLED, 'ident' => 'enabled', 'displayName' => (string)$this->l10n->t('Enabled apps')], - ['id' => self::CAT_DISABLED, 'ident' => 'disabled', 'displayName' => (string)$this->l10n->t('Disabled apps')], - ['id' => self::CAT_APP_BUNDLES, 'ident' => 'app-bundles', 'displayName' => (string)$this->l10n->t('App bundles')], - ]; + $formattedCategories = []; $categories = $this->categoryFetcher->get(); foreach($categories as $category) { $formattedCategories[] = [ |