mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 08:12:40 +01:00
d0b3f199bb
Summary: Fixes T1102. If you don't use `arc`, the web workflow requires some extra needless steps when updating diffs. Provide a more streamlined "Update Diff" workflow. Test Plan: {F347750} Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T1102 Differential Revision: https://secure.phabricator.com/D12131
36 lines
908 B
PHP
36 lines
908 B
PHP
<?php
|
|
|
|
final class DifferentialRevisionListController extends DifferentialController {
|
|
|
|
private $queryKey;
|
|
|
|
public function shouldAllowPublic() {
|
|
return true;
|
|
}
|
|
|
|
public function willProcessRequest(array $data) {
|
|
$this->queryKey = idx($data, 'queryKey');
|
|
}
|
|
|
|
public function processRequest() {
|
|
$controller = id(new PhabricatorApplicationSearchController())
|
|
->setQueryKey($this->queryKey)
|
|
->setSearchEngine(new DifferentialRevisionSearchEngine())
|
|
->setNavigation($this->buildSideNavView());
|
|
|
|
return $this->delegateToController($controller);
|
|
}
|
|
|
|
protected function buildApplicationCrumbs() {
|
|
$crumbs = parent::buildApplicationCrumbs();
|
|
|
|
$crumbs->addAction(
|
|
id(new PHUIListItemView())
|
|
->setHref($this->getApplicationURI('/diff/create/'))
|
|
->setName(pht('Create Diff'))
|
|
->setIcon('fa-plus-square'));
|
|
|
|
return $crumbs;
|
|
}
|
|
|
|
}
|