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:
@@ -56,6 +56,12 @@ abstract class PhabricatorConduitController extends PhabricatorController {
|
||||
$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())
|
||||
->setErrors($messages)
|
||||
->setSeverity(PHUIInfoView::SEVERITY_NOTICE);
|
||||
|
||||
Reference in New Issue
Block a user