mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
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:
parent
f0b833769d
commit
015258a256
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,7 @@ final class PhabricatorTypeaheadCommonDatasourceController
|
||||||
$need_applications = true;
|
$need_applications = true;
|
||||||
$need_rich_data = true;
|
$need_rich_data = true;
|
||||||
$need_symbols = true;
|
$need_symbols = true;
|
||||||
|
$need_projs = true;
|
||||||
break;
|
break;
|
||||||
case 'searchowner':
|
case 'searchowner':
|
||||||
$need_users = true;
|
$need_users = true;
|
||||||
|
@ -207,7 +208,9 @@ final class PhabricatorTypeaheadCommonDatasourceController
|
||||||
foreach ($projs as $proj) {
|
foreach ($projs as $proj) {
|
||||||
$results[] = id(new PhabricatorTypeaheadResult())
|
$results[] = id(new PhabricatorTypeaheadResult())
|
||||||
->setName($proj->getName())
|
->setName($proj->getName())
|
||||||
|
->setDisplayType("Project")
|
||||||
->setURI('/project/view/'.$proj->getID().'/')
|
->setURI('/project/view/'.$proj->getID().'/')
|
||||||
|
->setImageURI($proj->loadProfile()->loadProfileImageURI())
|
||||||
->setPHID($proj->getPHID());
|
->setPHID($proj->getPHID());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue