X Tutup
Skip to content

Commit 1b14b28

Browse files
authored
Merge pull request #37923 from owncloud/phoenix-default-menu-item
Add new defaults for the icon and label of the phoenix menu item
2 parents f049399 + fc6226b commit 1b14b28

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

changelog/unreleased/37923

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Change: New defaults for phoenix app switcher icon and label
2+
3+
When phoenix is configured (phoenix.baseUrl in config.php), the app switcher has a menu item for Phoenix. This now has a new and configurable default icon and default label.
4+
5+
https://github.com/owncloud/core/pull/37923
6+
https://github.com/owncloud/product/issues/227

core/img/apps/phoenix.svg

Lines changed: 4 additions & 0 deletions
Loading

lib/private/NavigationManager.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,13 @@ private function init() {
193193
// add phoenix if setup
194194
$phoenixBaseUrl = $this->config->getSystemValue('phoenix.baseUrl', null);
195195
if ($phoenixBaseUrl) {
196-
$iconPath = $this->urlGenerator->imagePath('core', 'default-app-icon.svg');
196+
$iconPath = $this->config->getSystemValue('phoenix.icon', $this->urlGenerator->imagePath('core', 'apps/phoenix.svg'));
197+
$l = $this->l10nFac->get("core");
198+
$label = $this->config->getSystemValue('phoenix.label', $l->t('New Design'));
197199
$this->add([
198200
'id' => 'phoenix',
199201
'href' => $phoenixBaseUrl,
200-
'name' => 'Phoenix',
202+
'name' => $label,
201203
'icon' => $iconPath,
202204
'order' => 99
203205
]);

0 commit comments

Comments
 (0)
X Tutup