X Tutup
Skip to content

Commit 2a7ab37

Browse files
committed
Add new defaults for the icon and label of the phoenix menu item
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.
1 parent e279ca9 commit 2a7ab37

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

core/img/apps/phoenix.svg

Lines changed: 4 additions & 0 deletions
Loading

lib/private/NavigationManager.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,12 @@ 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+
$label = $this->config->getSystemValue('phoenix.label', 'New Design');
197198
$this->add([
198199
'id' => 'phoenix',
199200
'href' => $phoenixBaseUrl,
200-
'name' => 'Phoenix',
201+
'name' => $label,
201202
'icon' => $iconPath,
202203
'order' => 99
203204
]);

0 commit comments

Comments
 (0)
X Tutup