...
This commit is contained in:
@@ -14,16 +14,23 @@
|
||||
<Toasts class="p-3" AutoHide="true" Delay="4000" Placement="ToastsPlacement.TopRight" />
|
||||
<div class="bb-page">
|
||||
<Sidebar @ref="sidebar"
|
||||
Href="/"
|
||||
IconName="IconName.BootstrapFill"
|
||||
Title="هوشــیان"
|
||||
BadgeText="v1.3.1"
|
||||
ImageSrc="/before/assets/images/logofilehushian.png"
|
||||
DataProvider="SidebarDataProvider"
|
||||
Width="200"
|
||||
WidthUnit="Unit.Px" />
|
||||
Href="/"
|
||||
IconName="IconName.BootstrapFill"
|
||||
Title="هوشــیان"
|
||||
BadgeText="v1.3.1"
|
||||
ImageSrc="/before/assets/images/logofilehushian.png"
|
||||
DataProvider="SidebarDataProvider"
|
||||
Width="200"
|
||||
WidthUnit="Unit.Px" />
|
||||
<main>
|
||||
<div class="d-flex align-items-center justify-content-end">
|
||||
<NavLink href="@{
|
||||
hrefuserpanel
|
||||
}">لینک گفتگو کاربر با شما</NavLink>
|
||||
<NavLink href="@{
|
||||
hrefai
|
||||
}">لینک گفتگو کاربر با دستیار هوش مصنوعی</NavLink>
|
||||
<p>شناسه شرکت : @CompanyID</p>
|
||||
<div class="text-white text-end d-flex flex-column justify-content-center align-items-end mx-2">
|
||||
<div style="color: black;" class="fw-bold">@Fullname</div>
|
||||
<h6 style="color: black;">@TitleRole</h6>
|
||||
@@ -31,7 +38,7 @@
|
||||
@if (img != null && img.Length > 0)
|
||||
{
|
||||
<Image Src=@GetImageSource() Class="rounded" Alt="placeholder" @onclick="EditCurrentUser"
|
||||
Style="height: 30px;cursor:pointer;margin-left:10px" />
|
||||
Style="height: 30px;cursor:pointer;margin-left:10px" />
|
||||
|
||||
}
|
||||
else
|
||||
@@ -41,7 +48,7 @@
|
||||
|
||||
|
||||
<Button Color="ButtonColor.Danger" Size="ButtonSize.Small"
|
||||
@onclick=OnCliclLogout Style="margin-left:10px">
|
||||
@onclick=OnCliclLogout Style="margin-left:10px">
|
||||
<Icon Name="IconName.DoorOpen" /> خروج
|
||||
</Button>
|
||||
|
||||
@@ -70,11 +77,14 @@
|
||||
</div>
|
||||
|
||||
@code {
|
||||
public string hrefuserpanel { get { return $"UserCP/{CompanyID}"; } }
|
||||
public string hrefai { get { return $"aichat/{CompanyID}"; } }
|
||||
private Modal modal = default!;
|
||||
public string Info { get; set; } = "";
|
||||
private string SelectedMenu = "page2";
|
||||
public string Username { get; set; }
|
||||
public string Fullname { get; set; }
|
||||
public int CompanyID { get; set; } = 0;
|
||||
public byte[]? img { get; set; }
|
||||
public string Role { get; set; }
|
||||
bool isonline = false;
|
||||
@@ -89,6 +99,7 @@
|
||||
//Roles = await localStorageService.GetItem<List<string>>("Role");
|
||||
Username = await localStorageService.GetItem<string>("C/Username");
|
||||
Fullname = await localStorageService.GetItem<string>("C/Fullname");
|
||||
CompanyID = await localStorageService.GetItem<int>("C/CompanyId");
|
||||
string UserID = await localStorageService.GetItem<string>("C/UserID");
|
||||
img = await localStorageService.GetItem<byte[]?>("C/img");
|
||||
}
|
||||
|
Reference in New Issue
Block a user