Highlight the currently selected policy in the policy dropdown control thing

Summary: Ref T603. Make this a little easier to use by highlighting the current value.

Test Plan: See screenshot.

Reviewers: chad, btrahan

Reviewed By: chad

CC: chad, aran

Maniphest Tasks: T603

Differential Revision: https://secure.phabricator.com/D7289
This commit is contained in:
epriestley
2013-10-12 17:08:35 -07:00
parent 5af031ec9b
commit 130a15b51b
5 changed files with 111 additions and 94 deletions

View File

@@ -120,6 +120,7 @@ final class AphrontFormPolicyControl extends AphrontFormControl {
'order' => $order,
'icons' => $icons,
'labels' => $labels,
'value' => $this->getValue(),
));
$selected = $flat_options[$this->getValue()];