mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-02 02:40:58 +01:00
Empty list filters won't display if empty
Summary: Exactly what it says on the tin Test Plan: No shadow when visiting saved custom queries in Maniphest. Still appears normally for other use sites Reviewers: epriestley, chad Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5535
This commit is contained in:
parent
bb5cc76b55
commit
70e0deb368
2 changed files with 8 additions and 2 deletions
|
@ -1253,7 +1253,7 @@ celerity_register_resource_map(array(
|
|||
),
|
||||
'javelin-behavior-conpherence-menu' =>
|
||||
array(
|
||||
'uri' => '/res/08fcd75a/rsrc/js/application/conpherence/behavior-menu.js',
|
||||
'uri' => '/res/35811cd4/rsrc/js/application/conpherence/behavior-menu.js',
|
||||
'type' => 'js',
|
||||
'requires' =>
|
||||
array(
|
||||
|
|
|
@ -3,6 +3,12 @@
|
|||
final class AphrontListFilterView extends AphrontView {
|
||||
|
||||
public function render() {
|
||||
$contents = $this->renderChildren();
|
||||
|
||||
if (!$contents) {
|
||||
return null;
|
||||
}
|
||||
|
||||
require_celerity_resource('aphront-list-filter-view-css');
|
||||
return hsprintf(
|
||||
'<div class="aphront-filter-table-wrapper">'.
|
||||
|
@ -12,7 +18,7 @@ final class AphrontListFilterView extends AphrontView {
|
|||
'</tr>'.
|
||||
'</table>'.
|
||||
'</div>',
|
||||
$this->renderChildren());
|
||||
$contents);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue