...
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
@inject AuthService authService;
|
||||
@inject BaseController baseController;
|
||||
@inject UserService userService;
|
||||
@inject IJSRuntime JS
|
||||
<Modal @ref="modal" />
|
||||
<Toasts class="p-3" AutoHide="true" Delay="4000" Placement="ToastsPlacement.TopRight" />
|
||||
<div class="bb-page">
|
||||
@@ -53,11 +54,11 @@
|
||||
<div class="align-items-center justify-content-start" style="margin-right:10px">
|
||||
|
||||
<Badge Color="BadgeColor.Primary" Style="margin-left:20px">
|
||||
<NavLink href="@{hrefuserpanel}">لینک گفتگو کاربر با شما</NavLink>
|
||||
<NavLink @onclick="async()=>await route(hrefuserpanel)">لینک گفتگو کاربر با شما</NavLink>
|
||||
</Badge>
|
||||
|
||||
<Badge Color="BadgeColor.Info" Style="margin-left:20px">
|
||||
<NavLink href="@{hrefai}">لینک گفتگو کاربر با دستیار هوش مصنوعی</NavLink>
|
||||
<NavLink @onclick="async()=>await route(hrefai)">لینک گفتگو کاربر با دستیار هوش مصنوعی</NavLink>
|
||||
</Badge>
|
||||
|
||||
<Badge Color="BadgeColor.Light" Style="margin-left:20px">
|
||||
@@ -188,7 +189,10 @@
|
||||
else if (menu == "page5") NavigationManager.NavigateTo("/Settings");
|
||||
|
||||
}
|
||||
|
||||
private async Task route(string route)
|
||||
{
|
||||
await JS.InvokeVoidAsync("openSmallWindow", $"/{route}");
|
||||
}
|
||||
async Task CheckOnline()
|
||||
{
|
||||
var token = await localStorageService.GetItem<string>("C/key");
|
||||
@@ -268,4 +272,9 @@
|
||||
}
|
||||
|
||||
private void ToggleSidebar() => sidebar.ToggleSidebar();
|
||||
}
|
||||
}
|
||||
<script>
|
||||
function openSmallWindow(url) {
|
||||
window.open(url, '_blank', 'width=500,height=650,resizable=no');
|
||||
}
|
||||
</script>
|
@@ -361,7 +361,7 @@
|
||||
|
||||
|
||||
@code {
|
||||
|
||||
|
||||
Common.Dtos.CurrentUserInfo CurrentUser { get; set; }
|
||||
List<Read_GroupDto> _Group = new List<Read_GroupDto>();
|
||||
//-------------------------------------
|
||||
@@ -1865,6 +1865,8 @@
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
|
||||
|
||||
// Trigger click on hidden input by id
|
||||
window.triggerClick = (elementId) => {
|
||||
const el = document.getElementById(elementId);
|
||||
|
@@ -23,7 +23,7 @@ else
|
||||
<PageTitle>گفتگو با دستیار هوشمند @CompanyInfo.FullName</PageTitle>
|
||||
}
|
||||
<div class="container-fluid">
|
||||
<div class="row" style="height:85vh">
|
||||
<div class="row" style="height:96vh">
|
||||
@if (isReady)
|
||||
{
|
||||
<div class="col-md-12 d-flex flex-column" style="margin-top:10px">
|
||||
|
Reference in New Issue
Block a user