Don't use status

This commit is contained in:
James Brooks
2017-01-04 20:08:19 +00:00
parent 87ed6f0ebe
commit a77c03dc31

View File

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