Send appropriate requests to the server when dragging cards on project boards
Summary: Ref T1344. Makes requests to the server, which are received and ignored. Performs appropriate locking/unlocking/enabling/disabling on the client. Test Plan: Dragged stuff around, saw it enable/disable/send correctly. Reviewers: chad, btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T1344 Differential Revision: https://secure.phabricator.com/D7943
This commit is contained in:
@@ -72,6 +72,7 @@ final class PhabricatorProjectBoardController
|
||||
'project-boards',
|
||||
array(
|
||||
'boardID' => $board_id,
|
||||
'moveURI' => $this->getApplicationURI('move/'.$project->getID().'/'),
|
||||
));
|
||||
|
||||
foreach ($columns as $column) {
|
||||
@@ -85,7 +86,11 @@ final class PhabricatorProjectBoardController
|
||||
->setCards(true)
|
||||
->setFlush(true)
|
||||
->setAllowEmptyList(true)
|
||||
->addSigil('project-column');
|
||||
->addSigil('project-column')
|
||||
->setMetadata(
|
||||
array(
|
||||
'columnPHID' => $column->getPHID(),
|
||||
));
|
||||
$task_phids = idx($task_map, $column->getPHID(), array());
|
||||
foreach (array_select_keys($tasks, $task_phids) as $task) {
|
||||
$cards->addItem($this->renderTaskCard($task));
|
||||
@@ -164,6 +169,10 @@ final class PhabricatorProjectBoardController
|
||||
->setGrippable($can_edit)
|
||||
->setHref('/T'.$task->getID())
|
||||
->addSigil('project-card')
|
||||
->setMetadata(
|
||||
array(
|
||||
'objectPHID' => $task->getPHID(),
|
||||
))
|
||||
->addAction(
|
||||
id(new PHUIListItemView())
|
||||
->setName(pht('Edit'))
|
||||
|
||||
Reference in New Issue
Block a user