Differential D16189 Diff 38944 src/applications/maniphest/relationship/ManiphestTaskHasCommitRelationship.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/relationship/ManiphestTaskHasCommitRelationship.php
Show All 11 Lines | final class ManiphestTaskHasCommitRelationship | ||||
protected function getActionName() { | protected function getActionName() { | ||||
return pht('Edit Commits'); | return pht('Edit Commits'); | ||||
} | } | ||||
protected function getActionIcon() { | protected function getActionIcon() { | ||||
return 'fa-code'; | return 'fa-code'; | ||||
} | } | ||||
public function shouldAppearInActionMenu() { | |||||
// TODO: For now, the default search for commits is not very good, so | |||||
// it is hard to find objects to link to. Until that works better, just | |||||
// hide this item. | |||||
return false; | |||||
} | |||||
public function canRelateObjects($src, $dst) { | public function canRelateObjects($src, $dst) { | ||||
return ($dst instanceof PhabricatorRepositoryCommit); | return ($dst instanceof PhabricatorRepositoryCommit); | ||||
} | } | ||||
public function getDialogTitleText() { | public function getDialogTitleText() { | ||||
return pht('Edit Related Commits'); | return pht('Edit Related Commits'); | ||||
} | } | ||||
public function getDialogHeaderText() { | public function getDialogHeaderText() { | ||||
return pht('Current Commits'); | return pht('Current Commits'); | ||||
} | } | ||||
public function getDialogButtonText() { | public function getDialogButtonText() { | ||||
return pht('Save Related Commits'); | return pht('Save Related Commits'); | ||||
} | } | ||||
protected function newRelationshipSource() { | |||||
return new DiffusionCommitRelationshipSource(); | |||||
} | |||||
} | } |