From 153ac58d2aa7dbb0eb256ac4f8a81303ac522f1a Mon Sep 17 00:00:00 2001 From: Kenn Jacobsen Date: Sat, 20 Apr 2019 12:24:53 +0200 Subject: [PATCH] Send notifications for rollbacks --- src/Umbraco.Web/Compose/NotificationsComponent.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Umbraco.Web/Compose/NotificationsComponent.cs b/src/Umbraco.Web/Compose/NotificationsComponent.cs index 08bcdf345c..adc0008f48 100644 --- a/src/Umbraco.Web/Compose/NotificationsComponent.cs +++ b/src/Umbraco.Web/Compose/NotificationsComponent.cs @@ -46,6 +46,9 @@ namespace Umbraco.Web.Compose //Send notifications for the unpublish action ContentService.Unpublished += (sender, args) => _notifier.Notify(_actions.GetAction(), args.PublishedEntities.ToArray()); + + //Send notifications for the rollback action + ContentService.RolledBack += (sender, args) => _notifier.Notify(_actions.GetAction(), args.Entity); } public void Terminate()