Add the component name to incident emails, if applicable. Closes #794
This commit is contained in:
@@ -69,6 +69,7 @@ class SendIncidentEmailNotificationHandler
|
||||
$mail = [
|
||||
'email' => $subscriber->email,
|
||||
'subject' => 'New incident reported.',
|
||||
'incident' => $event->incident,
|
||||
'status' => $data->humanStatus,
|
||||
'htmlContent' => $data->formattedMessage,
|
||||
'textContent' => $data->message,
|
||||
|
||||
@@ -9,6 +9,9 @@
|
||||
|
||||
<p>
|
||||
{!! $status !!}
|
||||
@if($incident->component)
|
||||
({{ $incident->component->name }})
|
||||
@endif
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
{!! trans('cachet.subscriber.email.incident.text', ['app_name' => Setting::get('app_name')]) !!}
|
||||
|
||||
{!! $status !!}
|
||||
@if($incident->component)
|
||||
({{ $incident->component->name }})
|
||||
@endif
|
||||
|
||||
{!! $textContent !!}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user