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

[Redesign] Make ObjectBox Header conditional

Summary: Ref T8099. In cases like dashboards, we don't always want a header with ObjectBox. This makes it optional.

Test Plan: Review a tab panel, see no weird lines.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T8099

Differential Revision: https://secure.phabricator.com/D12920
This commit is contained in:
Chad Little 2015-05-19 06:39:15 -07:00
parent 1562dca214
commit 37cd1735d9

View file

@ -159,10 +159,11 @@ final class PHUIObjectBoxView extends AphrontView {
$header_color = $this->headerColor;
}
$header = null;
if ($this->header) {
$header = $this->header;
$header->setHeaderColor($header_color);
} else {
} else if ($this->headerText) {
$header = id(new PHUIHeaderView())
->setHeader($this->headerText)
->setHeaderColor($header_color);