From a77c03dc319fc3429698d13b314f35cf260507a0 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Wed, 4 Jan 2017 20:08:19 +0000 Subject: [PATCH] Don't use status --- .../Component/ComponentStatusChangedNotification.php | 7 ------- 1 file changed, 7 deletions(-) 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);