From 265443a9b9d28151ace7862a1a5bd03d54b86c47 Mon Sep 17 00:00:00 2001 From: vc-ci Date: Thu, 16 May 2024 09:44:56 +0000 Subject: [PATCH 1/2] 3.807.0 --- Directory.Build.props | 2 +- src/VirtoCommerce.NotificationsModule.Web/module.manifest | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 9223f27..7e49c7e 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,7 +2,7 @@ - 3.806.0 + 3.807.0 $(VersionSuffix)-$(BuildNumber) diff --git a/src/VirtoCommerce.NotificationsModule.Web/module.manifest b/src/VirtoCommerce.NotificationsModule.Web/module.manifest index 37c0163..2cdb212 100644 --- a/src/VirtoCommerce.NotificationsModule.Web/module.manifest +++ b/src/VirtoCommerce.NotificationsModule.Web/module.manifest @@ -1,7 +1,7 @@ VirtoCommerce.Notifications - 3.806.0 + 3.807.0 3.825.0 From 7d0a50325f53901f94008dd11b4e3f500ffcdbc1 Mon Sep 17 00:00:00 2001 From: Oleg Zhuk Date: Tue, 4 Jun 2024 15:55:16 +0200 Subject: [PATCH 2/2] VCST-1251: Add unregister notification (#160) fix: Impoved Unregistered Notifcation UX with displaying correct original type. --- .../Model/UnregisteredNotification.cs | 7 ++++++- .../Services/NotificationRegistrar.cs | 1 - .../Services/NotificationService.cs | 2 +- .../Localizations/en.VirtoCommerce.Notifications.json | 2 +- .../Localizations/ru.VirtoCommerce.Notifications.json | 2 +- .../Scripts/blades/notification-templates-list.js | 7 ++++--- .../Scripts/blades/notifications-list.js | 9 +++++---- 7 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/VirtoCommerce.NotificationsModule.Core/Model/UnregisteredNotification.cs b/src/VirtoCommerce.NotificationsModule.Core/Model/UnregisteredNotification.cs index 14c83a4..ecc13e7 100644 --- a/src/VirtoCommerce.NotificationsModule.Core/Model/UnregisteredNotification.cs +++ b/src/VirtoCommerce.NotificationsModule.Core/Model/UnregisteredNotification.cs @@ -6,12 +6,17 @@ namespace VirtoCommerce.NotificationsModule.Core.Model //The special type for handle cases when the system have stored the notification objects with unregistered types. public class UnregisteredNotification : Notification { + public UnregisteredNotification(string type) : base(type) + { + + } + public UnregisteredNotification() : base(nameof(UnregisteredNotification)) { Templates = new List(); } public override string Kind => "undef"; - + public override void SetFromToMembers(string from, string to) { diff --git a/src/VirtoCommerce.NotificationsModule.Data/Services/NotificationRegistrar.cs b/src/VirtoCommerce.NotificationsModule.Data/Services/NotificationRegistrar.cs index b7c547b..5de9eab 100644 --- a/src/VirtoCommerce.NotificationsModule.Data/Services/NotificationRegistrar.cs +++ b/src/VirtoCommerce.NotificationsModule.Data/Services/NotificationRegistrar.cs @@ -47,6 +47,5 @@ public NotificationBuilder OverrideNotificationType