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:
parent
89b37f0357
commit
f34246a723
1 changed files with 8 additions and 6 deletions
|
@ -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');
|
||||||
|
|
||||||
|
if (PhabricatorEnv::getEnvConfig('maniphest.enabled')) {
|
||||||
$action = new AphrontHeadsupActionView();
|
$action = new AphrontHeadsupActionView();
|
||||||
$action->setName('Edit Maniphest Tasks');
|
$action->setName('Edit Maniphest Tasks');
|
||||||
$action->setURI('/search/attach/'.$commit->getPHID().'/TASK/edge/');
|
$action->setURI('/search/attach/'.$commit->getPHID().'/TASK/edge/');
|
||||||
$action->setWorkflow(true);
|
$action->setWorkflow(true);
|
||||||
$action->setClass('attach-maniphest');
|
$action->setClass('attach-maniphest');
|
||||||
$actions[] = $action;
|
$actions[] = $action;
|
||||||
|
}
|
||||||
|
|
||||||
if ($user->getIsAdmin()) {
|
if ($user->getIsAdmin()) {
|
||||||
$action = new AphrontHeadsupActionView();
|
$action = new AphrontHeadsupActionView();
|
||||||
|
|
Loading…
Reference in a new issue