Page MenuHomePhabricator

Hide Pager border if no pager exists
ClosedPublic

Authored by chad on Jul 11 2017, 2:47 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jan 5, 11:25 PM
Unknown Object (File)
Wed, Jan 1, 5:35 PM
Unknown Object (File)
Wed, Jan 1, 4:32 AM
Unknown Object (File)
Fri, Dec 27, 4:31 PM
Unknown Object (File)
Tue, Dec 17, 9:26 AM
Unknown Object (File)
Wed, Dec 11, 12:57 PM
Unknown Object (File)
Wed, Dec 11, 4:56 AM
Unknown Object (File)
Dec 7 2024, 9:29 AM
Subscribers

Details

Summary

I guess we have this magical method that tells me if a pager is coming down the render pipe. Huzzah.

Test Plan

Test Branches page in Diffusion, see no pager border.

Diff Detail

Repository
rP Phabricator
Branch
pager-vanish (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 17670
Build 23723: Run Core Tests
Build 23722: arc lint + arc unit

Event Timeline

epriestley added inline comments.
src/view/phui/PHUIObjectBoxView.php
306

Maybe do the check here, instead, and just decline to render the pager rather than pretending it wasn't set. The current behavior makes this not work:

$view->setPager($x);
$x = $view->getPager();

We probably never do that and I don't know that getPager() even exists on this class, but a setX() method just ignoring that it was called feels like a flimsy pattern.

This revision is now accepted and ready to land.Jul 11 2017, 2:55 PM
This revision was automatically updated to reflect the committed changes.