Updated plugin version control. Added notification system to web ui
This commit is contained in:
12
WebUI/Services/NotificationService.cs
Normal file
12
WebUI/Services/NotificationService.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using WebUI.Models;
|
||||
namespace WebUI.Services;
|
||||
|
||||
public class NotificationService
|
||||
{
|
||||
public event Action<Notification> OnNotify;
|
||||
|
||||
public void Notify(string message, NotificationType type = NotificationType.Info)
|
||||
{
|
||||
OnNotify?.Invoke(new Notification { Message = message, Type = type });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user