This commit is contained in:
mmrbnjd
2025-08-23 22:55:37 +03:30
parent e964cb551e
commit ca46987be9
3 changed files with 49 additions and 21 deletions

View File

@@ -7,10 +7,13 @@
@using HushianWebApp.Services
@using Microsoft.AspNetCore.SignalR.Client;
@using System.Threading;
@if(CompanyInfo!=null)
<PageTitle>به هوشیان خوش آمدید</PageTitle>
@if (CompanyInfo != null && !string.IsNullOrEmpty(CompanyInfo?.FullName))
{
<PageTitle>گفتگو با @CompanyInfo?.FullName</PageTitle>
}
@inject NavigationManager NavigationManager
@inject ChatService ChatService
@inject ILocalStorageService localStorageService;
@@ -41,7 +44,7 @@
<div class="d-flex gap-2 ms-auto">
@if (LastOpenChat != null)
{
<Button Color="ButtonColor.Success" Size=ButtonSize.ExtraSmall Outline="true" @onclick="NewChat" Class="new-conversation-btn">
<Icon Name="IconName.ChatDots" Class="me-1" /> گفتگو جدید
</Button>
@@ -170,7 +173,7 @@
<Button Color="ButtonColor.Secondary" Size=ButtonSize.Small Outline="true" @onclick="OpenFileDialog" Class="attach-btn" title="افزودن تصویر">
<Icon Name="IconName.Image" />
</Button>
<!-- Audio Recording Button -->
<Button Color="@(IsRecording ? ButtonColor.Danger : ButtonColor.Secondary)"
Size=ButtonSize.Small
@@ -230,7 +233,7 @@
</div>
}
</div>
@if (LastOpenChat!=null && LastOpenChat.status == Common.Enums.ConversationStatus.InProgress)
{
@@ -240,7 +243,10 @@
}
}
@if (LastOpenChat.status == Common.Enums.ConversationStatus.Finished)
{
<p style="color: red;text-align: center;font-weight: bold;">این گفتگو به پایان رسیده</p>
}
</div>
}
else