1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 10:12:41 +01:00

Hide Edit Maniphest Tasks in commit with disabled Maniphest

Test Plan: Viewed commit with enabled/disabled Maniphest.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3871
This commit is contained in:
vrana 2012-11-01 17:36:04 -07:00
parent 89b37f0357
commit f34246a723

View file

@ -820,12 +820,14 @@ final class DiffusionCommitController extends DiffusionController {
require_celerity_resource('phabricator-object-selector-css'); require_celerity_resource('phabricator-object-selector-css');
require_celerity_resource('javelin-behavior-phabricator-object-selector'); require_celerity_resource('javelin-behavior-phabricator-object-selector');
$action = new AphrontHeadsupActionView(); if (PhabricatorEnv::getEnvConfig('maniphest.enabled')) {
$action->setName('Edit Maniphest Tasks'); $action = new AphrontHeadsupActionView();
$action->setURI('/search/attach/'.$commit->getPHID().'/TASK/edge/'); $action->setName('Edit Maniphest Tasks');
$action->setWorkflow(true); $action->setURI('/search/attach/'.$commit->getPHID().'/TASK/edge/');
$action->setClass('attach-maniphest'); $action->setWorkflow(true);
$actions[] = $action; $action->setClass('attach-maniphest');
$actions[] = $action;
}
if ($user->getIsAdmin()) { if ($user->getIsAdmin()) {
$action = new AphrontHeadsupActionView(); $action = new AphrontHeadsupActionView();