Page MenuHomePhabricator

D17851.diff
No OneTemporary

D17851.diff

diff --git a/src/applications/passphrase/controller/PassphraseCredentialEditController.php b/src/applications/passphrase/controller/PassphraseCredentialEditController.php
--- a/src/applications/passphrase/controller/PassphraseCredentialEditController.php
+++ b/src/applications/passphrase/controller/PassphraseCredentialEditController.php
@@ -244,8 +244,8 @@
->setValue($v_name)
->setError($e_name))
->appendChild(
- id(new AphrontFormTextAreaControl())
- ->setHeight(AphrontFormTextAreaControl::HEIGHT_VERY_SHORT)
+ id(new PhabricatorRemarkupControl())
+ ->setUser($viewer)
->setName('description')
->setLabel(pht('Description'))
->setValue($v_desc))
diff --git a/src/applications/passphrase/xaction/PassphraseCredentialSecretIDTransaction.php b/src/applications/passphrase/xaction/PassphraseCredentialSecretIDTransaction.php
--- a/src/applications/passphrase/xaction/PassphraseCredentialSecretIDTransaction.php
+++ b/src/applications/passphrase/xaction/PassphraseCredentialSecretIDTransaction.php
@@ -17,17 +17,9 @@
$object->setSecretID($value);
}
- public function shouldHide() {
- if (!$this->getOldValue()) {
- return true;
- }
-
- return false;
- }
-
public function getTitle() {
$old = $this->getOldValue();
- if ($old === null) {
+ if (!$old) {
return pht(
'%s attached a new secret to this credential.',
$this->renderAuthor());
@@ -53,4 +45,8 @@
}
}
+ public function getIcon() {
+ return 'fa-key';
+ }
+
}

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 18, 2:55 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6727454
Default Alt Text
D17851.diff (1 KB)

Event Timeline