Add unsub links to all Slack notifications

This commit is contained in:
James Brooks
2017-01-03 19:23:44 +00:00
parent 51864f3897
commit 6dc56de18a
3 changed files with 6 additions and 3 deletions

View File

@@ -135,7 +135,8 @@ class NewIncidentNotification extends Notification
->fields(array_filter([
'ID' => "#{$this->incident->id}",
'Link' => $this->incident->permalink,
]));
]))
->footer(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]));;
});
}
}

View File

@@ -143,7 +143,8 @@ class IncidentUpdatedNotification extends Notification
->fields(array_filter([
'ID' => "#{$this->update->id}",
'Link' => $this->update->permalink,
]));
]))
->footer(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]));;
});
}
}

View File

@@ -119,7 +119,8 @@ class NewScheduleNotification extends Notification
->fields(array_filter([
'ID' => "#{$this->schedule->id}",
'Status' => $this->schedule->human_status,
]));
]))
->footer(trans('cachet.subscriber.unsubscribe', ['link' => cachet_route('subscribe.unsubscribe', $notifiable->verify_code)]));;
});
}
}