1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-24 14:30:56 +01:00

Swap "Create Task" button over to EditEngine

Summary: Ref T9132. I can't actually get rid of the EditController yet since a few weird things still use it, but I think I can swap this button out without breaking anything. This will let us do "New Feature Request" / "New Bug" / "Advanced Task Creation" on secure and start playing with this stuff sooner.

Test Plan: Clicked "Create Task", got sent to new form.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T9132

Differential Revision: https://secure.phabricator.com/D14673
This commit is contained in:
epriestley 2015-12-04 14:15:38 -08:00
parent eded19a5c6
commit 7aa865db2d

View file

@ -30,11 +30,9 @@ abstract class ManiphestController extends PhabricatorController {
protected function buildApplicationCrumbs() { protected function buildApplicationCrumbs() {
$crumbs = parent::buildApplicationCrumbs(); $crumbs = parent::buildApplicationCrumbs();
$crumbs->addAction( id(new ManiphestEditEngine())
id(new PHUIListItemView()) ->setViewer($this->getViewer())
->setName(pht('Create Task')) ->addActionToCrumbs($crumbs);
->setHref($this->getApplicationURI('task/create/'))
->setIcon('fa-plus-square'));
return $crumbs; return $crumbs;
} }