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:
@@ -118,8 +118,8 @@ final class DiffusionBrowseFileController extends DiffusionBrowseController {
|
||||
|
||||
$follow = $request->getStr('follow');
|
||||
if ($follow) {
|
||||
$notice = new PHUIErrorView();
|
||||
$notice->setSeverity(PHUIErrorView::SEVERITY_WARNING);
|
||||
$notice = new PHUIInfoView();
|
||||
$notice->setSeverity(PHUIInfoView::SEVERITY_WARNING);
|
||||
$notice->setTitle(pht('Unable to Continue'));
|
||||
switch ($follow) {
|
||||
case 'first':
|
||||
@@ -138,8 +138,8 @@ final class DiffusionBrowseFileController extends DiffusionBrowseController {
|
||||
|
||||
$renamed = $request->getStr('renamed');
|
||||
if ($renamed) {
|
||||
$notice = new PHUIErrorView();
|
||||
$notice->setSeverity(PHUIErrorView::SEVERITY_NOTICE);
|
||||
$notice = new PHUIInfoView();
|
||||
$notice->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
|
||||
$notice->setTitle(pht('File Renamed'));
|
||||
$notice->appendChild(
|
||||
pht("File history passes through a rename from '%s' to '%s'.",
|
||||
|
||||
Reference in New Issue
Block a user