mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-19 03:01:11 +01:00
Update Help for handleRequest
Summary: Updates Help for handleRequest Test Plan: Launch help dialog, close dialog Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T8628 Differential Revision: https://secure.phabricator.com/D13772
This commit is contained in:
parent
e5bf2ac373
commit
deb06727ea
2 changed files with 5 additions and 7 deletions
|
@ -7,9 +7,8 @@ final class PhabricatorHelpEditorProtocolController
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function processRequest() {
|
public function handleRequest(AphrontRequest $request) {
|
||||||
$request = $this->getRequest();
|
$viewer = $request->getViewer();
|
||||||
$viewer = $request->getUser();
|
|
||||||
|
|
||||||
$dialog = id(new AphrontDialogView())
|
$dialog = id(new AphrontDialogView())
|
||||||
->setUser($viewer)
|
->setUser($viewer)
|
||||||
|
|
|
@ -7,9 +7,8 @@ final class PhabricatorHelpKeyboardShortcutController
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function processRequest() {
|
public function handleRequest(AphrontRequest $request) {
|
||||||
$request = $this->getRequest();
|
$viewer = $request->getViewer();
|
||||||
$user = $request->getUser();
|
|
||||||
|
|
||||||
$keys = $request->getStr('keys');
|
$keys = $request->getStr('keys');
|
||||||
try {
|
try {
|
||||||
|
@ -59,7 +58,7 @@ final class PhabricatorHelpKeyboardShortcutController
|
||||||
$rows);
|
$rows);
|
||||||
|
|
||||||
$dialog = id(new AphrontDialogView())
|
$dialog = id(new AphrontDialogView())
|
||||||
->setUser($user)
|
->setUser($viewer)
|
||||||
->setTitle(pht('Keyboard Shortcuts'))
|
->setTitle(pht('Keyboard Shortcuts'))
|
||||||
->appendChild($table)
|
->appendChild($table)
|
||||||
->addCancelButton('#', pht('Close'));
|
->addCancelButton('#', pht('Close'));
|
||||||
|
|
Loading…
Reference in a new issue