mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-27 16:00:59 +01:00
If there are no flagged revisions, don't show anything on "Active Revisions"
Test Plan: Looked at /differential/ with and without flags. Reviewers: nh, btrahan Reviewed By: nh CC: aran, epriestley Maniphest Tasks: T1055 Differential Revision: https://secure.phabricator.com/D2044
This commit is contained in:
parent
eaa2ff71d3
commit
ec8b445727
1 changed files with 10 additions and 8 deletions
|
@ -452,15 +452,17 @@ final class DifferentialRevisionListController extends DifferentialController {
|
|||
->needHandles(true)
|
||||
->execute();
|
||||
|
||||
$view = id(new PhabricatorFlagListView())
|
||||
->setFlags($flags)
|
||||
->setUser($user);
|
||||
if ($flags) {
|
||||
$view = id(new PhabricatorFlagListView())
|
||||
->setFlags($flags)
|
||||
->setUser($user);
|
||||
|
||||
$views[] = array(
|
||||
'title' => 'Flagged Revisions',
|
||||
'view' => $view,
|
||||
'special' => true,
|
||||
);
|
||||
$views[] = array(
|
||||
'title' => 'Flagged Revisions',
|
||||
'view' => $view,
|
||||
'special' => true,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$view = id(clone $template)
|
||||
|
|
Loading…
Reference in a new issue