-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add project logical viewer for project or user function
- Loading branch information
1 parent
ac1eb66
commit 3d55843
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/applications/project/typeahead/PhabricatorProjectOrUserFunctionDatasource.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
final class PhabricatorProjectOrUserFunctionDatasource | ||
extends PhabricatorTypeaheadCompositeDatasource { | ||
|
||
public function getBrowseTitle() { | ||
return pht('Browse Users and Projects'); | ||
} | ||
|
||
public function getPlaceholderText() { | ||
return pht('Type a user, project name, or function...'); | ||
} | ||
|
||
public function getComponentDatasources() { | ||
return array( | ||
new PhabricatorViewerDatasource(), | ||
new PhabricatorPeopleDatasource(), | ||
new PhabricatorProjectDatasource(), | ||
new PhabricatorProjectMembersDatasource(), | ||
// TM CHANGES | ||
new PhabricatorProjectLogicalViewerDatasource(), | ||
// TM CHANGES END | ||
new PhabricatorProjectUserFunctionDatasource(), | ||
); | ||
} | ||
|
||
|
||
} |