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:
@@ -49,8 +49,8 @@ final class PhamePostViewController extends PhameController {
|
||||
|
||||
if ($post->isDraft()) {
|
||||
$object_box->appendChild(
|
||||
id(new PHUIErrorView())
|
||||
->setSeverity(PHUIErrorView::SEVERITY_NOTICE)
|
||||
id(new PHUIInfoView())
|
||||
->setSeverity(PHUIInfoView::SEVERITY_NOTICE)
|
||||
->setTitle(pht('Draft Post'))
|
||||
->appendChild(
|
||||
pht('Only you can see this draft until you publish it. '.
|
||||
@@ -59,8 +59,8 @@ final class PhamePostViewController extends PhameController {
|
||||
|
||||
if (!$post->getBlog()) {
|
||||
$object_box->appendChild(
|
||||
id(new PHUIErrorView())
|
||||
->setSeverity(PHUIErrorView::SEVERITY_WARNING)
|
||||
id(new PHUIInfoView())
|
||||
->setSeverity(PHUIInfoView::SEVERITY_WARNING)
|
||||
->setTitle(pht('Not On A Blog'))
|
||||
->appendChild(
|
||||
pht('This post is not associated with a blog (the blog may have '.
|
||||
|
||||
Reference in New Issue
Block a user