mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-21 03:08:40 +01:00
Reduce colors in ApplicationTransactions for subscriptions
Summary: Remove previously added colors. Test Plan: Load page, see less color (task) Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D13816
This commit is contained in:
parent
900ce2fd37
commit
31cfdef0f7
1 changed files with 0 additions and 15 deletions
|
@ -428,21 +428,6 @@ abstract class PhabricatorApplicationTransaction
|
|||
return 'red';
|
||||
}
|
||||
break;
|
||||
case PhabricatorTransactions::TYPE_SUBSCRIBERS:
|
||||
$old = $this->getOldValue();
|
||||
$new = $this->getNewValue();
|
||||
$add = array_diff($new, $old);
|
||||
$rem = array_diff($old, $new);
|
||||
if ($add && $rem) {
|
||||
return 'green';
|
||||
} else if ($add) {
|
||||
return 'green';
|
||||
} else if ($rem) {
|
||||
return 'black';
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue