Page MenuHomePhabricator

D17287.diff
No OneTemporary

D17287.diff

diff --git a/src/applications/home/constants/PhabricatorHomeConstants.php b/src/applications/home/constants/PhabricatorHomeConstants.php
--- a/src/applications/home/constants/PhabricatorHomeConstants.php
+++ b/src/applications/home/constants/PhabricatorHomeConstants.php
@@ -6,5 +6,6 @@
const ITEM_HOME = 'home.dashboard';
const ITEM_LAUNCHER = 'home.launcher';
const ITEM_MANAGE = 'home.manage.menu';
+ const ITEM_APPS_LABEL = 'home.apps.label';
}
diff --git a/src/applications/home/engine/PhabricatorHomeProfileMenuEngine.php b/src/applications/home/engine/PhabricatorHomeProfileMenuEngine.php
--- a/src/applications/home/engine/PhabricatorHomeProfileMenuEngine.php
+++ b/src/applications/home/engine/PhabricatorHomeProfileMenuEngine.php
@@ -26,8 +26,12 @@
// Default Home Dashboard
$items[] = $this->newItem()
->setBuiltinKey(PhabricatorHomeConstants::ITEM_HOME)
- ->setMenuItemKey(
- PhabricatorHomeProfileMenuItem::MENUITEMKEY);
+ ->setMenuItemKey(PhabricatorHomeProfileMenuItem::MENUITEMKEY);
+
+ $items[] = $this->newItem()
+ ->setBuiltinKey(PhabricatorHomeConstants::ITEM_APPS_LABEL)
+ ->setMenuItemKey(PhabricatorLabelProfileMenuItem::MENUITEMKEY)
+ ->setMenuItemProperties(array('name' => pht('Applications')));
foreach ($applications as $application) {
if (!$application->isPinnedByDefault($viewer)) {
@@ -48,8 +52,7 @@
// Hotlink to More Applications Launcher...
$items[] = $this->newItem()
->setBuiltinKey(PhabricatorHomeConstants::ITEM_LAUNCHER)
- ->setMenuItemKey(
- PhabricatorHomeLauncherProfileMenuItem::MENUITEMKEY);
+ ->setMenuItemKey(PhabricatorHomeLauncherProfileMenuItem::MENUITEMKEY);
$items[] = $this->newManageItem();

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 5:41 PM (12 h, 35 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6919707
Default Alt Text
D17287.diff (1 KB)

Event Timeline