Differential D20473 Diff 48864 src/applications/dashboard/editor/PhabricatorDashboardPanelEditEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/editor/PhabricatorDashboardPanelEditEngine.php
| Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | final class PhabricatorDashboardPanelEditEngine | ||||
| protected function getObjectViewURI($object) { | protected function getObjectViewURI($object) { | ||||
| return $object->getURI(); | return $object->getURI(); | ||||
| } | } | ||||
| protected function didApplyTransactions($object, array $xactions) { | protected function didApplyTransactions($object, array $xactions) { | ||||
| $context = $this->getContextObject(); | $context = $this->getContextObject(); | ||||
| if ($context instanceof PhabricatorDashboard) { | if ($context instanceof PhabricatorDashboard) { | ||||
| // Only add the panel to the dashboard when we're creating a new panel, | |||||
| // not if we're editing an existing panel. | |||||
| if (!$this->getIsCreate()) { | |||||
| return; | |||||
| } | |||||
| $viewer = $this->getViewer(); | $viewer = $this->getViewer(); | ||||
| $controller = $this->getController(); | $controller = $this->getController(); | ||||
| $request = $controller->getRequest(); | $request = $controller->getRequest(); | ||||
| $dashboard = $context; | $dashboard = $context; | ||||
| $xactions = array(); | $xactions = array(); | ||||
| ▲ Show 20 Lines • Show All 43 Lines • Show Last 20 Lines | |||||