Always give users "fa-user" icons in tokenizers
Summary: Fixes T10247. The flavor icons are unhelpful/confusing in these contexts; show a boringer icon instead. Test Plan: Used tokenizer to select user with custom profile icon. Reloaded page. Saw boringer icon in both cases. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10247 Differential Revision: https://secure.phabricator.com/D15154
This commit is contained in:
@@ -28,6 +28,7 @@ final class PhabricatorObjectHandle
|
||||
private $objectName;
|
||||
private $policyFiltered;
|
||||
private $subtitle;
|
||||
private $tokenIcon;
|
||||
|
||||
public function setIcon($icon) {
|
||||
$this->icon = $icon;
|
||||
@@ -86,6 +87,19 @@ final class PhabricatorObjectHandle
|
||||
return null;
|
||||
}
|
||||
|
||||
public function setTokenIcon($icon) {
|
||||
$this->tokenIcon = $icon;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getTokenIcon() {
|
||||
if ($this->tokenIcon !== null) {
|
||||
return $this->tokenIcon;
|
||||
}
|
||||
|
||||
return $this->getIcon();
|
||||
}
|
||||
|
||||
public function getTypeIcon() {
|
||||
if ($this->getPHIDType()) {
|
||||
return $this->getPHIDType()->getTypeIcon();
|
||||
|
||||
Reference in New Issue
Block a user