Changeset View
Changeset View
Standalone View
Standalone View
src/applications/auth/phid/PhabricatorAuthSSHKeyPHIDType.php
| Show All 26 Lines | final class PhabricatorAuthSSHKeyPHIDType | ||||
| public function loadHandles( | public function loadHandles( | ||||
| PhabricatorHandleQuery $query, | PhabricatorHandleQuery $query, | ||||
| array $handles, | array $handles, | ||||
| array $objects) { | array $objects) { | ||||
| foreach ($handles as $phid => $handle) { | foreach ($handles as $phid => $handle) { | ||||
| $key = $objects[$phid]; | $key = $objects[$phid]; | ||||
| $handle->setName(pht('SSH Key %d', $key->getID())); | $handle->setName(pht('SSH Key %d', $key->getID())); | ||||
| if (!$key->getIsActive()) { | |||||
| $handle->setClosed(pht('Inactive')); | |||||
| } | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||