Include incident update message in mail

This commit is contained in:
jzinkweg
2019-04-10 17:22:36 +02:00
parent 5b411c1015
commit 0cbaa75e67
2 changed files with 7 additions and 2 deletions

View File

@@ -78,6 +78,7 @@ class IncidentUpdatedNotification extends Notification
->subject(trans('notifications.incident.update.mail.subject'))
->markdown('notifications.incident.update', [
'incident' => $this->update->incident,
'update' => $this->update,
'content' => $content,
'actionText' => trans('notifications.incident.new.mail.action'),
'actionUrl' => cachet_route('incident', [$this->update->incident]),

View File

@@ -1,7 +1,11 @@
@component('mail::message')
# {{ trans('notifications.incident.update.mail.title', ['name' => $incidentName, 'new_status' => $newStatus]) }}
{{ $content }}
{{ $update->message }}
@component('mail::button', ['url' => $actionUrl])
{{ $actionText }}
@endcomponent
Thanks,<br>
{{ Config::get('setting.app_name') }}