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:
parent
24b6c7d718
commit
3cdabb9588
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue