Search Typeahead now returns projects.
Summary: Search typeahead now returns project objects with project images :). I have set the displaytype to "Project" if that's okay. Alternatively We can also set it to some short description of a given project. All this time, I was thinking Jump Nav to be the search typeahead ... I am so dumb ... Lolz :P
Test Plan: {F44336}
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, Korvin, AnhNhan
Maniphest Tasks: T2948
Differential Revision: https://secure.phabricator.com/D6057
This commit is contained in:
committed by
epriestley
parent
f0b833769d
commit
015258a256
@@ -34,6 +34,7 @@ final class PhabricatorTypeaheadCommonDatasourceController
|
||||
$need_applications = true;
|
||||
$need_rich_data = true;
|
||||
$need_symbols = true;
|
||||
$need_projs = true;
|
||||
break;
|
||||
case 'searchowner':
|
||||
$need_users = true;
|
||||
@@ -207,7 +208,9 @@ final class PhabricatorTypeaheadCommonDatasourceController
|
||||
foreach ($projs as $proj) {
|
||||
$results[] = id(new PhabricatorTypeaheadResult())
|
||||
->setName($proj->getName())
|
||||
->setDisplayType("Project")
|
||||
->setURI('/project/view/'.$proj->getID().'/')
|
||||
->setImageURI($proj->loadProfile()->loadProfileImageURI())
|
||||
->setPHID($proj->getPHID());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user