mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-09 22:31:03 +01:00
Show more repository information in Owners path editing dropdown
Summary: Fixes T11293. Test Plan: {F1716175} Reviewers: chad Reviewed By: chad Maniphest Tasks: T11293 Differential Revision: https://secure.phabricator.com/D16253
This commit is contained in:
parent
b656c87e37
commit
c5efb453be
1 changed files with 8 additions and 2 deletions
|
@ -82,7 +82,13 @@ final class PhabricatorOwnersPathsController
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$repos = mpull($repos, 'getDisplayName', 'getPHID');
|
|
||||||
|
$repo_map = array();
|
||||||
|
foreach ($repos as $key => $repo) {
|
||||||
|
$monogram = $repo->getMonogram();
|
||||||
|
$name = $repo->getName();
|
||||||
|
$repo_map[$repo->getPHID()] = "{$monogram} {$name}";
|
||||||
|
}
|
||||||
asort($repos);
|
asort($repos);
|
||||||
|
|
||||||
$template = new AphrontTypeaheadTemplateView();
|
$template = new AphrontTypeaheadTemplateView();
|
||||||
|
@ -94,7 +100,7 @@ final class PhabricatorOwnersPathsController
|
||||||
'root' => 'path-editor',
|
'root' => 'path-editor',
|
||||||
'table' => 'paths',
|
'table' => 'paths',
|
||||||
'add_button' => 'addpath',
|
'add_button' => 'addpath',
|
||||||
'repositories' => $repos,
|
'repositories' => $repo_map,
|
||||||
'input_template' => $template,
|
'input_template' => $template,
|
||||||
'pathRefs' => $path_refs,
|
'pathRefs' => $path_refs,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue