1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 01:02:42 +01:00

Remove "disabled" look to subprojects/workboard nav items

Summary: Fixes T12330. Minor UI nit, since we use "disabled" to usually mean "no permission". Makes these links always normal looking.

Test Plan: Review a new project in sandbox.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Maniphest Tasks: T12330

Differential Revision: https://secure.phabricator.com/D17436
This commit is contained in:
Chad Little 2017-02-28 17:12:24 -08:00
parent dbe3d5e57f
commit bf0a7cbec6
2 changed files with 0 additions and 8 deletions

View file

@ -47,10 +47,6 @@ final class PhabricatorProjectSubprojectsProfileMenuItem
PhabricatorProfileMenuItemConfiguration $config) {
$project = $config->getProfileObject();
$has_children = ($project->getHasSubprojects()) ||
($project->getHasMilestones());
$id = $project->getID();
$name = $this->getDisplayName($config);
@ -60,7 +56,6 @@ final class PhabricatorProjectSubprojectsProfileMenuItem
$item = $this->newItem()
->setHref($href)
->setName($name)
->setDisabled(!$has_children)
->setIcon($icon);
return array(

View file

@ -56,8 +56,6 @@ final class PhabricatorProjectWorkboardProfileMenuItem
PhabricatorProfileMenuItemConfiguration $config) {
$project = $config->getProfileObject();
$has_workboard = $project->getHasWorkboard();
$id = $project->getID();
$href = "/project/board/{$id}/";
$name = $this->getDisplayName($config);
@ -65,7 +63,6 @@ final class PhabricatorProjectWorkboardProfileMenuItem
$item = $this->newItem()
->setHref($href)
->setName($name)
->setDisabled(!$has_workboard)
->setIcon('fa-columns');
return array(