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

Use selected button state on blame button

Summary: Visually selects the button if blame is on.

Test Plan: Turn blame on and off in Diffusion on a file.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D18504
This commit is contained in:
Chad Little 2017-08-30 18:33:42 +00:00 committed by chad
parent 3b43a70773
commit 67c658a7ed

View file

@ -730,6 +730,7 @@ final class DiffusionBrowseController extends DiffusionController {
->setText($blame_text) ->setText($blame_text)
->setIcon($blame_icon) ->setIcon($blame_icon)
->setUser($viewer) ->setUser($viewer)
->setSelected(!$blame_value)
->setColor(PHUIButtonView::GREY); ->setColor(PHUIButtonView::GREY);
if ($viewer->isLoggedIn()) { if ($viewer->isLoggedIn()) {