Page MenuHomePhabricator

D20313.id.diff
No OneTemporary

D20313.id.diff

diff --git a/src/applications/maniphest/controller/ManiphestTaskGraphController.php b/src/applications/maniphest/controller/ManiphestTaskGraphController.php
--- a/src/applications/maniphest/controller/ManiphestTaskGraphController.php
+++ b/src/applications/maniphest/controller/ManiphestTaskGraphController.php
@@ -30,6 +30,7 @@
->setViewer($viewer)
->setSeedPHID($task->getPHID())
->setLimit($graph_limit)
+ ->setIsStandalone(true)
->loadGraph();
if (!$task_graph->isEmpty()) {
$parent_type = ManiphestTaskDependedOnByTaskEdgeType::EDGECONST;
diff --git a/src/infrastructure/graph/ManiphestTaskGraph.php b/src/infrastructure/graph/ManiphestTaskGraph.php
--- a/src/infrastructure/graph/ManiphestTaskGraph.php
+++ b/src/infrastructure/graph/ManiphestTaskGraph.php
@@ -4,6 +4,7 @@
extends PhabricatorObjectGraph {
private $seedMaps = array();
+ private $isStandalone;
protected function getEdgeTypes() {
return array(
@@ -24,6 +25,15 @@
return $object->isClosed();
}
+ public function setIsStandalone($is_standalone) {
+ $this->isStandalone = $is_standalone;
+ return $this;
+ }
+
+ public function getIsStandalone() {
+ return $this->isStandalone;
+ }
+
protected function newTableRow($phid, $object, $trace) {
$viewer = $this->getViewer();
@@ -132,6 +142,14 @@
array(
true,
!$this->getRenderOnlyAdjacentNodes(),
+ ))
+ ->setDeviceVisibility(
+ array(
+ true,
+
+ // On mobile, we only show the actual graph drawing if we're on the
+ // standalone page, since it can take over the screen otherwise.
+ $this->getIsStandalone(),
));
}

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 18, 5:17 PM (22 h, 59 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7701423
Default Alt Text
D20313.id.diff (1 KB)

Event Timeline