Component notifications can be silenced. Closes #2316

This commit is contained in:
James Brooks
2017-01-16 20:48:00 +00:00
parent 7c50932d01
commit 8725ab2b9b
8 changed files with 44 additions and 9 deletions
@@ -48,6 +48,11 @@ class SendComponentUpdateEmailNotificationHandler
{
$component = $event->component;
// If we're silent, then don't send this.
if ($event->silent) {
return;
}
// Don't email anything if the status hasn't changed.
if ($event->original_status === $event->new_status) {
return;