diff --git a/app/Notifications/Component/ComponentStatusChangedNotification.php b/app/Notifications/Component/ComponentStatusChangedNotification.php index 9b2ad282..06094a5a 100644 --- a/app/Notifications/Component/ComponentStatusChangedNotification.php +++ b/app/Notifications/Component/ComponentStatusChangedNotification.php @@ -83,15 +83,8 @@ class ComponentStatusChangedNotification extends Notification 'new_status' => trans("cachet.components.status.{$this->status}"), ]); - if ($this->status <= 1) { - $status = 'success'; - } else { - $status = 'error'; - } - return (new MailMessage()) ->subject(trans('notifications.component.status_update.subject')) - ->$status() ->greeting(trans('notifications.component.status_update.title')) ->line($content) ->action('View Component', $this->component->link);