PHUIErrorView
Summary: Clean up the error view styling.
Test Plan:
Tested as many as I could find, built additional tests in UIExamples
{F280452}
{F280453}
Reviewers: btrahan, epriestley
Reviewed By: epriestley
Subscribers: hach-que, Korvin, epriestley
Differential Revision: https://secure.phabricator.com/D11605
This commit is contained in:
@@ -29,9 +29,9 @@ final class PhabricatorAuthNeedsMultiFactorController
|
||||
$viewer->updateMultiFactorEnrollment();
|
||||
|
||||
if (!$viewer->getIsEnrolledInMultiFactor()) {
|
||||
$help = id(new AphrontErrorView())
|
||||
$help = id(new PHUIErrorView())
|
||||
->setTitle(pht('Add Multi-Factor Authentication To Your Account'))
|
||||
->setSeverity(AphrontErrorView::SEVERITY_WARNING)
|
||||
->setSeverity(PHUIErrorView::SEVERITY_WARNING)
|
||||
->setErrors(
|
||||
array(
|
||||
pht(
|
||||
@@ -53,9 +53,9 @@ final class PhabricatorAuthNeedsMultiFactorController
|
||||
'account.'),
|
||||
));
|
||||
} else {
|
||||
$help = id(new AphrontErrorView())
|
||||
$help = id(new PHUIErrorView())
|
||||
->setTitle(pht('Multi-Factor Authentication Configured'))
|
||||
->setSeverity(AphrontErrorView::SEVERITY_NOTICE)
|
||||
->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
|
||||
->setErrors(
|
||||
array(
|
||||
pht(
|
||||
|
||||
Reference in New Issue
Block a user