mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-22 19:49:02 +01:00
Create 'Add Task' link on project/view page
Reviewed by: epriestley See: https://github.com/facebook/phabricator/pull/368
This commit is contained in:
parent
8ac2da9850
commit
563f3ea236
1 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,11 @@ final class ManiphestPeopleMenuEventListener extends PhutilEventListener {
|
|||
} else if ($object instanceof PhabricatorProject) {
|
||||
$href = '/maniphest/view/all/?projects='.$object->getPHID();
|
||||
$actions[] = $action->setHref($href);
|
||||
|
||||
$actions[] = id(new PhabricatorActionView())
|
||||
->setName(pht("Add Task"))
|
||||
->setIcon('create')
|
||||
->setHref('/maniphest/task/create/?projects=' . $object->getPHID());
|
||||
}
|
||||
|
||||
$event->setValue('actions', $actions);
|
||||
|
|
Loading…
Add table
Reference in a new issue