1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +01:00

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:
epriestley 2017-03-24 12:36:02 -07:00
parent 24b6c7d718
commit 3cdabb9588

View file

@ -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);