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)
Mar 31 2024, 9:53 AM
Unknown Object (File)
Feb 23 2024, 1:51 PM
Unknown Object (File)
Feb 23 2024, 12:16 PM
Unknown Object (File)
Feb 10 2024, 3:21 PM
Unknown Object (File)
Feb 8 2024, 2:07 AM
Unknown Object (File)
Jan 21 2024, 9:44 AM
Unknown Object (File)
Jan 21 2024, 9:22 AM
Unknown Object (File)
Jan 21 2024, 9:21 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.