Move PHUIErrorView to PHUIInfoView

Summary: Since this element isn't strictly about errors, re-label as info view instead.

Test Plan: Grepped for all callsites, tested UIExamples and a few other random pages.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: hach-que, Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D11867
This commit is contained in:
Chad Little
2015-03-01 14:45:56 -08:00
parent 5b104e291a
commit c038c643f4
82 changed files with 263 additions and 257 deletions

View File

@@ -16,7 +16,7 @@ final class PhabricatorPeopleInviteSendController
$message = $request->getStr('message');
$emails = $request->getStr('emails');
$severity = PHUIErrorView::SEVERITY_ERROR;
$severity = PHUIInfoView::SEVERITY_ERROR;
if ($request->isFormPost()) {
// NOTE: We aren't using spaces as a delimiter here because email
// addresses with names often include spaces.
@@ -61,13 +61,13 @@ final class PhabricatorPeopleInviteSendController
$confirm_errors[] = pht(
'All of the addresses appear to be valid invite recipients. '.
'Confirm the actions below to continue.');
$severity = PHUIErrorView::SEVERITY_NOTICE;
$severity = PHUIInfoView::SEVERITY_NOTICE;
} else {
$confirm_errors[] = pht(
'Some of the addresses you entered do not appear to be '.
'valid recipients. Review the table below. You can revise '.
'the address list, or ignore these errors and continue.');
$severity = PHUIErrorView::SEVERITY_WARNING;
$severity = PHUIInfoView::SEVERITY_WARNING;
}
if ($any_valid && $request->getBool('confirm')) {
@@ -159,7 +159,7 @@ final class PhabricatorPeopleInviteSendController
$confirm_box = id(new PHUIObjectBoxView())
->setErrorView(
id(new PHUIErrorView())
id(new PHUIInfoView())
->setErrors($confirm_errors)
->setSeverity($severity))
->setHeaderText(pht('Confirm Invites'))