Reorder workboard menu items
Summary: Adds a divider and better grouping Test Plan: Click on dropdown menu on a workboard Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D17984
This commit is contained in:
@@ -713,14 +713,6 @@ final class PhabricatorProjectBoardViewController
|
|||||||
->setDisabled(!$can_edit)
|
->setDisabled(!$can_edit)
|
||||||
->setWorkflow(true);
|
->setWorkflow(true);
|
||||||
|
|
||||||
$background_uri = $this->getApplicationURI("board/{$id}/background/");
|
|
||||||
$manage_items[] = id(new PhabricatorActionView())
|
|
||||||
->setIcon('fa-paint-brush')
|
|
||||||
->setName(pht('Change Background Color'))
|
|
||||||
->setHref($background_uri)
|
|
||||||
->setDisabled(!$can_edit)
|
|
||||||
->setWorkflow(false);
|
|
||||||
|
|
||||||
if ($show_hidden) {
|
if ($show_hidden) {
|
||||||
$hidden_uri = $this->getURIWithState()
|
$hidden_uri = $this->getURIWithState()
|
||||||
->setQueryParam('hidden', null);
|
->setQueryParam('hidden', null);
|
||||||
@@ -738,6 +730,17 @@ final class PhabricatorProjectBoardViewController
|
|||||||
->setName($hidden_text)
|
->setName($hidden_text)
|
||||||
->setHref($hidden_uri);
|
->setHref($hidden_uri);
|
||||||
|
|
||||||
|
$manage_items[] = id(new PhabricatorActionView())
|
||||||
|
->setType(PhabricatorActionView::TYPE_DIVIDER);
|
||||||
|
|
||||||
|
$background_uri = $this->getApplicationURI("board/{$id}/background/");
|
||||||
|
$manage_items[] = id(new PhabricatorActionView())
|
||||||
|
->setIcon('fa-paint-brush')
|
||||||
|
->setName(pht('Change Background Color'))
|
||||||
|
->setHref($background_uri)
|
||||||
|
->setDisabled(!$can_edit)
|
||||||
|
->setWorkflow(false);
|
||||||
|
|
||||||
$manage_uri = $this->getApplicationURI("board/{$id}/manage/");
|
$manage_uri = $this->getApplicationURI("board/{$id}/manage/");
|
||||||
$manage_items[] = id(new PhabricatorActionView())
|
$manage_items[] = id(new PhabricatorActionView())
|
||||||
->setIcon('fa-gear')
|
->setIcon('fa-gear')
|
||||||
|
|||||||
Reference in New Issue
Block a user