Use a typeahead for "document types" in global search

Summary:
  - Now that we have "browse", this is a much more reasonable control for random sets of things.
  - The new explicit search scope selector reduces the need to fiddle with this field manually, too.

Test Plan:
{F379292}

{F379293}

Reviewers: chad, btrahan

Reviewed By: btrahan

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D12510
This commit is contained in:
epriestley
2015-04-22 15:25:34 -07:00
parent 3a2c2ae3c3
commit b49645d25b
12 changed files with 111 additions and 47 deletions

View File

@@ -31,6 +31,13 @@ abstract class PhabricatorPHIDType {
}
public function getTypeIcon() {
// Default to the application icon if the type doesn't specify one.
$application_class = $this->getPHIDTypeApplicationClass();
if ($application_class) {
$application = newv($application_class, array());
return $application->getFontIcon();
}
return null;
}