1
0
Fork 0
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:
Chad Little 2015-08-06 17:30:47 -07:00
parent 900ce2fd37
commit 31cfdef0f7

View file

@ -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;
}