Differential D20399 Diff 48690 src/applications/dashboard/phid/PhabricatorDashboardPanelPHIDType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/dashboard/phid/PhabricatorDashboardPanelPHIDType.php
| Show All 29 Lines | public function loadHandles( | ||||
| array $objects) { | array $objects) { | ||||
| foreach ($handles as $phid => $handle) { | foreach ($handles as $phid => $handle) { | ||||
| $panel = $objects[$phid]; | $panel = $objects[$phid]; | ||||
| $name = $panel->getName(); | $name = $panel->getName(); | ||||
| $monogram = $panel->getMonogram(); | $monogram = $panel->getMonogram(); | ||||
| $handle->setName($panel->getMonogram()); | $handle | ||||
| $handle->setFullName("{$monogram} {$name}"); | ->setIcon('fa-window-maximize') | ||||
| $handle->setURI("/{$monogram}"); | ->setName($name) | ||||
| ->setFullName("{$monogram} {$name}") | |||||
| ->setURI($panel->getURI()); | |||||
| if ($panel->getIsArchived()) { | if ($panel->getIsArchived()) { | ||||
| $handle->setStatus(PhabricatorObjectHandle::STATUS_CLOSED); | $handle->setStatus(PhabricatorObjectHandle::STATUS_CLOSED); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| public function canLoadNamedObject($name) { | public function canLoadNamedObject($name) { | ||||
| Show All 29 Lines | |||||