Substitute :name by incident name on slack title

Slack title for created incident has ':name', which is being substituted by incident name.
This commit is contained in:
tejaswivinod
2019-02-06 10:22:11 -05:00
committed by GitHub
parent a99a8fec4c
commit 20828a0600

View File

@@ -128,7 +128,7 @@ class NewIncidentNotification extends Notification
->$status()
->content($content)
->attachment(function ($attachment) use ($notifiable) {
$attachment->title(trans('notifications.incident.new.slack.title', [$this->incident->name]))
$attachment->title(trans('notifications.incident.new.slack.title', ['name' => $this->incident->name]))
->timestamp($this->incident->getWrappedObject()->occurred_at)
->fields(array_filter([
'ID' => "#{$this->incident->id}",