...
This commit is contained in:
@@ -20,10 +20,10 @@
|
||||
<span>
|
||||
<strong>@CompanyName / @groups.FirstOrDefault(f => f.ID == SelectedGroup)?.Name / @SelectedConversation?.ExperFullName</strong><br />
|
||||
<Badge Color="BadgeColor.Danger"
|
||||
Position="Position.Absolute"
|
||||
Placement="BadgePlacement.TopRight"
|
||||
IndicatorType="BadgeIndicatorType.RoundedPill"
|
||||
VisuallyHiddenText="status"></Badge>
|
||||
Position="Position.Absolute"
|
||||
Placement="BadgePlacement.TopRight"
|
||||
IndicatorType="BadgeIndicatorType.RoundedPill"
|
||||
VisuallyHiddenText="status"></Badge>
|
||||
<small>پاسخگویی سوالات شما هستیم</small>
|
||||
</span>
|
||||
<button class="btn-close btn-close-white" @onclick="CloseChat"></button>
|
||||
@@ -39,7 +39,7 @@
|
||||
@if (SelectedConversation == null)
|
||||
{
|
||||
<button class="btn btn-outline-secondary btn-sm mt-2"
|
||||
@onclick="()=> {SelectedGroup=0; StateHasChanged();}" style="margin-left:5px;margin-bottom:5px">
|
||||
@onclick="()=> {SelectedGroup=0; StateHasChanged();}" style="margin-left:5px;margin-bottom:5px">
|
||||
شرکت @CompanyName (@CountQueueCompany)
|
||||
</button>
|
||||
@GCContent
|
||||
@@ -75,14 +75,14 @@
|
||||
</div>
|
||||
<style>
|
||||
.chat-box-expanded {
|
||||
position: fixed;
|
||||
bottom: 50%;
|
||||
right: 50%;
|
||||
transform: translate(50%, 50%);
|
||||
width: 90vw;
|
||||
height: 80%;
|
||||
z-index: 1051;
|
||||
transition: all 0.3s ease;
|
||||
position: fixed;
|
||||
bottom: 50%;
|
||||
right: 50%;
|
||||
transform: translate(50%, 50%);
|
||||
width: 90vw;
|
||||
height: 80%;
|
||||
z-index: 1051;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -180,17 +180,17 @@
|
||||
CompanyID=CompanyID
|
||||
OnMultipleOfThree="EventCallback.Factory.Create<int>(this, CallBackSelectedGroup)" />
|
||||
;
|
||||
Conversations = await conversationService.MyConversationUserSide(CompanyID);
|
||||
if (Conversations.Count > 0)
|
||||
ConversationsContent =@<ConversionHistoryComponent Conversations="Conversations"
|
||||
OnMultipleOfThree="EventCallback.Factory.Create<int>(this, SelectedConv)" />
|
||||
;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
// ex Groups Company
|
||||
}
|
||||
|
||||
Conversations = await conversationService.MyConversationUserSide(CompanyID);
|
||||
if (Conversations.Count > 0)
|
||||
ConversationsContent =@<ConversionHistoryComponent Conversations="Conversations"
|
||||
OnMultipleOfThree="EventCallback.Factory.Create<int>(this, SelectedConv)" />
|
||||
;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -235,7 +235,15 @@
|
||||
GroupID = SelectedGroup,
|
||||
Question = InputMessage
|
||||
};
|
||||
var convID= await conversationService.NewConversationFromCurrentUser(Item);
|
||||
if (convID >0)
|
||||
{
|
||||
ConversationID = convID;
|
||||
await SelectedConv(ConversationID.Value);
|
||||
}
|
||||
|
||||
}
|
||||
InputMessage = string.Empty;
|
||||
Sending = false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user