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:
@@ -29,9 +29,9 @@ final class PhabricatorAuthNeedsMultiFactorController
|
||||
$viewer->updateMultiFactorEnrollment();
|
||||
|
||||
if (!$viewer->getIsEnrolledInMultiFactor()) {
|
||||
$help = id(new PHUIErrorView())
|
||||
$help = id(new PHUIInfoView())
|
||||
->setTitle(pht('Add Multi-Factor Authentication To Your Account'))
|
||||
->setSeverity(PHUIErrorView::SEVERITY_WARNING)
|
||||
->setSeverity(PHUIInfoView::SEVERITY_WARNING)
|
||||
->setErrors(
|
||||
array(
|
||||
pht(
|
||||
@@ -53,9 +53,9 @@ final class PhabricatorAuthNeedsMultiFactorController
|
||||
'account.'),
|
||||
));
|
||||
} else {
|
||||
$help = id(new PHUIErrorView())
|
||||
$help = id(new PHUIInfoView())
|
||||
->setTitle(pht('Multi-Factor Authentication Configured'))
|
||||
->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
|
||||
->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
|
||||
->setErrors(
|
||||
array(
|
||||
pht(
|
||||
|
||||
Reference in New Issue
Block a user