Differential D19827 Diff 47387 src/applications/diffusion/management/DiffusionRepositoryStagingManagementPanel.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/management/DiffusionRepositoryStagingManagementPanel.php
<?php | <?php | ||||
final class DiffusionRepositoryStagingManagementPanel | final class DiffusionRepositoryStagingManagementPanel | ||||
extends DiffusionRepositoryManagementPanel { | extends DiffusionRepositoryManagementPanel { | ||||
const PANELKEY = 'staging'; | const PANELKEY = 'staging'; | ||||
public function getManagementPanelLabel() { | public function getManagementPanelLabel() { | ||||
return pht('Staging Area'); | return pht('Staging Area'); | ||||
} | } | ||||
public function getManagementPanelOrder() { | public function getManagementPanelOrder() { | ||||
return 700; | return 700; | ||||
} | } | ||||
public function getManagementPanelGroupKey() { | |||||
return DiffusionRepositoryManagementBuildsPanelGroup::PANELGROUPKEY; | |||||
} | |||||
public function shouldEnableForRepository( | public function shouldEnableForRepository( | ||||
PhabricatorRepository $repository) { | PhabricatorRepository $repository) { | ||||
return $repository->isGit(); | return $repository->isGit(); | ||||
} | } | ||||
public function getManagementPanelIcon() { | public function getManagementPanelIcon() { | ||||
$repository = $this->getRepository(); | $repository = $this->getRepository(); | ||||
▲ Show 20 Lines • Show All 57 Lines • Show Last 20 Lines |