1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 05:50:55 +01:00

Fix some overlooked profile menu construction callsites

Summary: Depends on D20384. Ref T13275. A bunch of this code got converted but I missed some callsites that aren't reached directly from the menu.

Test Plan:
  - Visited each controller, saw actual pages instead of menu construction fatals.
  - Grepped for `getProfileMenu()`.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13275

Differential Revision: https://secure.phabricator.com/D20385
This commit is contained in:
epriestley 2019-04-09 14:21:29 -07:00
parent e4524d4707
commit fb19310631
6 changed files with 18 additions and 9 deletions

View file

@ -83,8 +83,9 @@ final class PhabricatorPeopleProfileEditController
$crumbs->addTextCrumb(pht('Edit Profile'));
$crumbs->setBorder(true);
$nav = $this->getProfileMenu();
$nav->selectFilter(PhabricatorPeopleProfileMenuEngine::ITEM_MANAGE);
$nav = $this->newNavigation(
$user,
PhabricatorPeopleProfileMenuEngine::ITEM_MANAGE);
$header = id(new PHUIHeaderView())
->setHeader(pht('Edit Profile: %s', $user->getFullName()))

View file

@ -266,8 +266,9 @@ final class PhabricatorPeopleProfilePictureController
$crumbs->addTextCrumb(pht('Edit Profile Picture'));
$crumbs->setBorder(true);
$nav = $this->getProfileMenu();
$nav->selectFilter(PhabricatorPeopleProfileMenuEngine::ITEM_MANAGE);
$nav = $this->newNavigation(
$user,
PhabricatorPeopleProfileMenuEngine::ITEM_MANAGE);
$header = $this->buildProfileHeader();

View file

@ -52,7 +52,9 @@ final class PhabricatorProjectBoardBackgroundController
->setURI($view_uri);
}
$nav = $this->getProfileMenu();
$nav = $this->newNavigation(
$board,
PhabricatorProject::ITEM_WORKBOARD);
$crumbs = id($this->buildApplicationCrumbs())
->addTextCrumb(pht('Workboard'), $board->getWorkboardURI())

View file

@ -38,7 +38,9 @@ final class PhabricatorProjectBoardManageController
$crumbs->addTextCrumb(pht('Manage'));
$crumbs->setBorder(true);
$nav = $this->getProfileMenu();
$nav = $this->newNavigation(
$board,
PhabricatorProject::ITEM_WORKBOARD);
$columns_list = $this->buildColumnsList($board, $columns);
require_celerity_resource('project-view-css');

View file

@ -51,7 +51,9 @@ final class PhabricatorProjectColumnDetailController
$crumbs->addTextCrumb(pht('Column: %s', $title));
$crumbs->setBorder(true);
$nav = $this->getProfileMenu();
$nav = $this->newNavigation(
$project,
PhabricatorProject::ITEM_WORKBOARD);
require_celerity_resource('project-view-css');
$view = id(new PHUITwoColumnView())

View file

@ -273,8 +273,9 @@ final class PhabricatorProjectEditPictureController
->setHeaderText(pht('Upload New Picture'))
->setForm($upload_form);
$nav = $this->getProfileMenu();
$nav->selectFilter(PhabricatorProject::ITEM_MANAGE);
$nav = $this->newNavigation(
$project,
PhabricatorProject::ITEM_MANAGE);
return $this->newPage()
->setTitle($title)