...
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user