...
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
@inject NavigationManager nav
|
||||
@inject localService localserv;
|
||||
@inject Fixedvalues fv;
|
||||
<Modal @ref="modal" />
|
||||
<HeadContent>
|
||||
<link rel="canonical" href="#">
|
||||
<!-- Favicon -->
|
||||
@@ -165,6 +166,11 @@
|
||||
</ul>
|
||||
</li>
|
||||
<!--/ User -->
|
||||
<li class="nav-item lh-1 me-3 f-ir">
|
||||
<Button Type="ButtonType.Button" @onclick="ShowNotifications" Color="ButtonColor.None">
|
||||
<Badge Color="BadgeColor.Danger"><Icon Name="IconName.MegaphoneFill" /> @dashBoard?.Notifications.Count()</Badge>
|
||||
</Button>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -206,6 +212,7 @@
|
||||
</div>
|
||||
|
||||
@code {
|
||||
private Modal modal = default!;
|
||||
public DashBoardDTO? dashBoard { get; set; }
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
@@ -217,6 +224,15 @@
|
||||
}
|
||||
}
|
||||
@functions {
|
||||
public async Task ShowNotifications()
|
||||
{
|
||||
|
||||
var parameters = new Dictionary<string, object>();
|
||||
parameters.Add("items", dashBoard?.Notifications);
|
||||
await modal.ShowAsync<Front.CUSComponent.Notifications>(title: "اطلاعیه ها", parameters: parameters);
|
||||
|
||||
|
||||
}
|
||||
private async Task Logout()
|
||||
{
|
||||
_hc.DefaultRequestHeaders.Clear();
|
||||
|
Reference in New Issue
Block a user