Make errors in dialogs look reasonable instead of hideous
Summary: I accidentally made these exceptionally ugly recently.
Test Plan: {F137411}
Reviewers: btrahan, chad
Reviewed By: chad
Subscribers: epriestley, chad
Differential Revision: https://secure.phabricator.com/D8684
This commit is contained in:
@@ -112,13 +112,10 @@ class AphrontDefaultApplicationConfiguration
|
||||
}
|
||||
|
||||
if ($ex instanceof PhabricatorSystemActionRateLimitException) {
|
||||
$error_view = id(new AphrontErrorView())
|
||||
->setErrors(array(pht('You are being rate limited.')));
|
||||
|
||||
$dialog = id(new AphrontDialogView())
|
||||
->setTitle(pht('Slow Down!'))
|
||||
->setUser($user)
|
||||
->appendChild($error_view)
|
||||
->setErrors(array(pht('You are being rate limited.')))
|
||||
->appendParagraph($ex->getMessage())
|
||||
->appendParagraph($ex->getRateExplanation())
|
||||
->addCancelButton('/', pht('Okaaaaaaaaaaaaaay...'));
|
||||
|
||||
Reference in New Issue
Block a user