mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 07:12:41 +01:00
Conpherence - workflow the Message link on people profiles
Summary: Fixes T2416. I was tired of looking at this task in the list, interns be damned. :D Test Plan: it is now a workflow when you click it Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2416 Differential Revision: https://secure.phabricator.com/D5811
This commit is contained in:
parent
2ed29980db
commit
ea78f920dd
2 changed files with 4 additions and 18 deletions
|
@ -86,24 +86,9 @@ final class ConpherenceNewController extends ConpherenceController {
|
||||||
|
|
||||||
$conpherence->saveTransaction();
|
$conpherence->saveTransaction();
|
||||||
|
|
||||||
if ($request->isAjax()) {
|
$uri = $this->getApplicationURI($conpherence->getID());
|
||||||
$dialog = id(new AphrontDialogView())
|
return id(new AphrontRedirectResponse())
|
||||||
->setUser($user)
|
->setURI($uri);
|
||||||
->setTitle('Success')
|
|
||||||
->addCancelButton('#', 'Okay')
|
|
||||||
->appendChild(
|
|
||||||
phutil_tag(
|
|
||||||
'p',
|
|
||||||
array(),
|
|
||||||
pht('Message sent successfully.')));
|
|
||||||
$response = id(new AphrontDialogResponse())
|
|
||||||
->setDialog($dialog);
|
|
||||||
} else {
|
|
||||||
$uri = $this->getApplicationURI($conpherence->getID());
|
|
||||||
$response = id(new AphrontRedirectResponse())
|
|
||||||
->setURI($uri);
|
|
||||||
}
|
|
||||||
return $response;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,7 @@ final class ConpherencePeopleMenuEventListener extends PhutilEventListener {
|
||||||
->setIsExternal(true)
|
->setIsExternal(true)
|
||||||
->setName($name)
|
->setName($name)
|
||||||
->setHref($conpherence_uri)
|
->setHref($conpherence_uri)
|
||||||
|
->setWorkflow(true)
|
||||||
->setKey($name));
|
->setKey($name));
|
||||||
|
|
||||||
$event->setValue('menu', $menu);
|
$event->setValue('menu', $menu);
|
||||||
|
|
Loading…
Reference in a new issue