Provide a hint that submitting a Conduit call shows you how to encode particular parameters
Summary: Ref T12447. Test Plan: {F4270003} Reviewers: chad Reviewed By: chad Maniphest Tasks: T12447 Differential Revision: https://secure.phabricator.com/D17557
This commit is contained in:
parent
24b6c7d718
commit
3cdabb9588
|
@ -56,6 +56,12 @@ abstract class PhabricatorConduitController extends PhabricatorController {
|
||||||
$panel_link),
|
$panel_link),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if ($params === null) {
|
||||||
|
$messages[] = pht(
|
||||||
|
'If you submit parameters, these examples will update to show '.
|
||||||
|
'exactly how to encode the parameters you submit.');
|
||||||
|
}
|
||||||
|
|
||||||
$info_view = id(new PHUIInfoView())
|
$info_view = id(new PHUIInfoView())
|
||||||
->setErrors($messages)
|
->setErrors($messages)
|
||||||
->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
|
->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
|
||||||
|
|
Loading…
Reference in a new issue