diff --git a/src/applications/home/constants/PhabricatorHomeConstants.php b/src/applications/home/constants/PhabricatorHomeConstants.php index 965dfbda77..b639c79abd 100644 --- a/src/applications/home/constants/PhabricatorHomeConstants.php +++ b/src/applications/home/constants/PhabricatorHomeConstants.php @@ -1,10 +1,11 @@ getViewer(); $items = array(); $custom_phid = $this->getCustomPHID(); $applications = id(new PhabricatorApplicationQuery()) ->setViewer($viewer) ->withInstalled(true) ->withUnlisted(false) ->withLaunchable(true) ->execute(); // 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)) { continue; } $properties = array( 'name' => $application->getName(), 'application' => $application->getPHID(), ); $items[] = $this->newItem() ->setBuiltinKey($application->getPHID()) ->setMenuItemKey(PhabricatorApplicationProfileMenuItem::MENUITEMKEY) ->setMenuItemProperties($properties); } // Hotlink to More Applications Launcher... $items[] = $this->newItem() ->setBuiltinKey(PhabricatorHomeConstants::ITEM_LAUNCHER) - ->setMenuItemKey( - PhabricatorHomeLauncherProfileMenuItem::MENUITEMKEY); + ->setMenuItemKey(PhabricatorHomeLauncherProfileMenuItem::MENUITEMKEY); $items[] = $this->newManageItem(); return $items; } }