Преглед на файлове

Fixed subscriber bug with events

Kenric Nugteren преди 7 месеца
родител
ревизия
ee514f52f4
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  1. 5 1
      prs.desktop/Panels/Notifications/NotificationPanel.xaml.cs

+ 5 - 1
prs.desktop/Panels/Notifications/NotificationPanel.xaml.cs

@@ -17,6 +17,7 @@ using sun.net.www;
 using Syncfusion.Windows.Controls.RichTextBoxAdv;
 using static ICSharpCode.AvalonEdit.Document.TextDocumentWeakEventManager;
 using SelectionChangedEventArgs = System.Windows.Controls.SelectionChangedEventArgs;
+using PRS.Shared;
 
 namespace PRSDesktop;
 
@@ -281,7 +282,10 @@ public partial class NotificationPanel : UserControl, IPanel<Notification>
             Security.IsAllowed<CanManageEvents>() ? "Events" : "Event Subscriptions",
             Security.IsAllowed<CanManageEvents>() ? PRSDesktop.Resources.edit : PRSDesktop.Resources.email, action =>
         {
-            var list = new MasterList(typeof(Event));
+            var list = new MasterList(typeof(Event), dynamicGrid: new EventGrid
+            {
+                EmployeeID = App.EmployeeID
+            });
             list.ShowDialog();
         });
     }