From 67c658a7ed87b4363a3b8800cadf082e50ad111f Mon Sep 17 00:00:00 2001 From: Chad Little Date: Wed, 30 Aug 2017 18:33:42 +0000 Subject: [PATCH] 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 --- .../diffusion/controller/DiffusionBrowseController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/applications/diffusion/controller/DiffusionBrowseController.php b/src/applications/diffusion/controller/DiffusionBrowseController.php index 5eee013622..7d6dad7e61 100644 --- a/src/applications/diffusion/controller/DiffusionBrowseController.php +++ b/src/applications/diffusion/controller/DiffusionBrowseController.php @@ -730,6 +730,7 @@ final class DiffusionBrowseController extends DiffusionController { ->setText($blame_text) ->setIcon($blame_icon) ->setUser($viewer) + ->setSelected(!$blame_value) ->setColor(PHUIButtonView::GREY); if ($viewer->isLoggedIn()) {