From 433958e2e38f4d6935f695e482e80693dc0ffeb9 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Sun, 26 Mar 2017 20:26:05 +0200 Subject: [PATCH] Move app management to the settings menu Signed-off-by: Joas Schilling --- core/css/header.scss | 24 +----------------------- lib/private/NavigationManager.php | 7 +++---- settings/img/apps.svg | 5 ++++- settings/js/apps.js | 6 +----- 4 files changed, 9 insertions(+), 33 deletions(-) diff --git a/core/css/header.scss b/core/css/header.scss index 4b6c0fbd00..1ba90aaabf 100644 --- a/core/css/header.scss +++ b/core/css/header.scss @@ -322,28 +322,6 @@ nav { } /* Apps management */ -.apps-management { - min-height: initial; - height: initial; - margin: 0; - a { - svg, - span { - -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=30)'; - opacity: .3; - } - /* icon opacity and hover effect */ - &:hover svg, - &:focus svg, - &.active svg, - &:hover span, - &:focus span, - &.active span { - -ms-filter: 'progid:DXImageTransform.Microsoft.Alpha(Opacity=100)'; - opacity: 1; - } - } -} #apps { max-height: calc(100vh - 100px); @@ -583,4 +561,4 @@ nav { } } -} \ No newline at end of file +} diff --git a/lib/private/NavigationManager.php b/lib/private/NavigationManager.php index 439b479524..0b1f43d7de 100644 --- a/lib/private/NavigationManager.php +++ b/lib/private/NavigationManager.php @@ -163,8 +163,8 @@ class NavigationManager implements INavigationManager { } $this->init = true; + $l = $this->l10nFac->get('lib'); if ($this->config->getSystemValue('knowledgebaseenabled', true)) { - $l = $this->l10nFac->get('lib'); $this->add([ 'type' => 'settings', 'id' => 'help', @@ -177,18 +177,17 @@ class NavigationManager implements INavigationManager { if ($this->userSession->isLoggedIn()) { if ($this->isAdmin()) { - $l = $this->l10nFac->get('settings'); // App management $this->add([ + 'type' => 'settings', 'id' => 'core_apps', - 'order' => 9999, + 'order' => 50, 'href' => $this->urlGenerator->linkToRoute('settings.AppSettings.viewApps'), 'icon' => $this->urlGenerator->imagePath('settings', 'apps.svg'), 'name' => $l->t('Apps'), ]); } - $l = $this->l10nFac->get('lib'); // Personal settings $this->add([ 'type' => 'settings', diff --git a/settings/img/apps.svg b/settings/img/apps.svg index d1509ea3a3..b6e545799a 100644 --- a/settings/img/apps.svg +++ b/settings/img/apps.svg @@ -1 +1,4 @@ - \ No newline at end of file + + + + diff --git a/settings/js/apps.js b/settings/js/apps.js index d2f26578a7..253cc7b1ea 100644 --- a/settings/js/apps.js +++ b/settings/js/apps.js @@ -537,14 +537,10 @@ OC.Settings.Apps = OC.Settings.Apps || { } } - - - if (navEntries.length > 7) { + if (navEntries.length > 8) { $('#more-apps').show(); - $('.apps-management').hide(); } else { $('#more-apps').hide(); - $('.apps-management').show(); } } });