Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15401365
D20313.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D20313.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D20313: Don't draw the task graph line image on devices by default
Attached
Detach File
Event Timeline
Log In to Comment