Move app management to the settings menu

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/4077/head
Joas Schilling 8 years ago
parent 054e161eb5
commit 433958e2e3
No known key found for this signature in database
GPG Key ID: E166FD8976B3BAC8
  1. 24
      core/css/header.scss
  2. 7
      lib/private/NavigationManager.php
  3. 5
      settings/img/apps.svg
  4. 6
      settings/js/apps.js

@ -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 {
}
}
}
}

@ -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',

@ -1 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" height="32" width="32" version="1"><path d="M14 6v8H6v4h8v8h4v-8h8v-4h-8V6h-4z" fill="#FFF"/></svg>
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" version="1">
<path d="m7 2v5h-5v2h5v5h2v-5h5v-2h-5v-5z"/>
</svg>

Before

Width:  |  Height:  |  Size: 139 B

After

Width:  |  Height:  |  Size: 184 B

@ -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();
}
}
});

Loading…
Cancel
Save