Touch up Subscriber List Dialog
Summary: Reduces images in ObjectLists to 40px over 50px, adds ability to show stackable lists in dialogs. Fixes T4891
Test Plan:
Tested People, Projects, Subscriber lists.
{F164265}
{F164264}
{F164266}
Reviewers: epriestley
Reviewed By: epriestley
Subscribers: epriestley, Korvin
Maniphest Tasks: T4891
Differential Revision: https://secure.phabricator.com/D9426
This commit is contained in:
@@ -20,6 +20,7 @@ final class AphrontDialogView extends AphrontView {
|
||||
private $disableWorkflowOnCancel;
|
||||
private $width = 'default';
|
||||
private $errors;
|
||||
private $flush;
|
||||
|
||||
const WIDTH_DEFAULT = 'default';
|
||||
const WIDTH_FORM = 'form';
|
||||
@@ -107,6 +108,11 @@ final class AphrontDialogView extends AphrontView {
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setFlush($flush) {
|
||||
$this->flush = $flush;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setRenderDialogAsDiv() {
|
||||
// TODO: This API is awkward.
|
||||
$this->renderAsForm = false;
|
||||
@@ -201,6 +207,9 @@ final class AphrontDialogView extends AphrontView {
|
||||
}
|
||||
|
||||
$more = $this->class;
|
||||
if ($this->flush) {
|
||||
$more .= ' aphront-dialog-flush';
|
||||
}
|
||||
|
||||
switch ($this->width) {
|
||||
case self::WIDTH_FORM:
|
||||
|
||||
Reference in New Issue
Block a user