Page MenuHomePhabricator

D17922.diff
No OneTemporary

D17922.diff

diff --git a/src/view/phui/PHUIButtonView.php b/src/view/phui/PHUIButtonView.php
--- a/src/view/phui/PHUIButtonView.php
+++ b/src/view/phui/PHUIButtonView.php
@@ -64,6 +64,10 @@
return $this;
}
+ public function getColor() {
+ return $this->color;
+ }
+
public function setDisabled($disabled) {
$this->disabled = $disabled;
return $this;
diff --git a/src/view/phui/PHUIHeaderView.php b/src/view/phui/PHUIHeaderView.php
--- a/src/view/phui/PHUIHeaderView.php
+++ b/src/view/phui/PHUIHeaderView.php
@@ -267,7 +267,9 @@
if ($this->actionLinks) {
$actions = array();
foreach ($this->actionLinks as $button) {
- $button->setColor(PHUIButtonView::GREY);
+ if (!$button->getColor()) {
+ $button->setColor(PHUIButtonView::GREY);
+ }
$button->addClass(PHUI::MARGIN_SMALL_LEFT);
$button->addClass('phui-header-action-link');
$actions[] = $button;

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 26, 12:36 AM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7722952
Default Alt Text
D17922.diff (942 B)

Event Timeline