...
This commit is contained in:
@@ -12,14 +12,18 @@
|
||||
@code {
|
||||
|
||||
[Parameter] public List<AlertDTO> items { get; set; }
|
||||
[Parameter] public EventCallback<int> OnMultipleOfThree { get; set; }
|
||||
public async Task OnClosedAlert(AlertDTO nt)
|
||||
{
|
||||
var rsp= await hc.Put($"User/ReadNotification/{Convert.ToInt32(nt.ViewSize)}");
|
||||
// if (rsp.IsSuccessStatusCode)
|
||||
// {
|
||||
// fv.dashBoard.Notifications.Remove(nt);
|
||||
if (rsp.IsSuccessStatusCode)
|
||||
{
|
||||
var ddd= fv.dashBoard?.Notifications.Remove(fv.dashBoard?.Notifications.Where(w=>w.ViewSize==nt.ViewSize&&w.Status==nt.Status
|
||||
&&w.Path==nt.Path&&w.Message==nt.Message).First());
|
||||
|
||||
// }
|
||||
await OnMultipleOfThree.InvokeAsync(fv.dashBoard.Notifications.Count());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user