...
This commit is contained in:
@@ -174,12 +174,18 @@
|
||||
public int UserID = 0;
|
||||
async Task OnclickInbox(int ID)
|
||||
{
|
||||
Inbox1Items = await conversationService.ConversationAwaitingOurResponse();
|
||||
Inbox2Items = await conversationService.MyConversationIsInProgress();
|
||||
Inbox3Items = await conversationService.MyConversationIsFinished();
|
||||
|
||||
switch (ID)
|
||||
{
|
||||
case 1:
|
||||
isSelectedInbox1 = true;
|
||||
isSelectedInbox2 = false;
|
||||
isSelectedInbox3 = false;
|
||||
|
||||
|
||||
break;
|
||||
|
||||
case 2:
|
||||
@@ -219,8 +225,15 @@
|
||||
}
|
||||
async Task onClickSelectedCon(int InboxID,Read_ConversationDto conversationDto)
|
||||
{
|
||||
// پر کردن SelectedCon
|
||||
// مقدار دادن به SelectedChatUserName
|
||||
if (InboxID == 1 )
|
||||
Inbox1Items = await conversationService.ConversationAwaitingOurResponse();
|
||||
if (InboxID == 2 )
|
||||
Inbox2Items = await conversationService.MyConversationIsInProgress();
|
||||
if ( InboxID == 3)
|
||||
Inbox3Items = await conversationService.MyConversationIsFinished();
|
||||
|
||||
|
||||
|
||||
chatloading = true;
|
||||
SelectedChatUserName = "در حال گفتگو با "+ conversationDto.UserFullName;
|
||||
SelectedConversation = conversationDto;
|
||||
|
@@ -7,7 +7,7 @@
|
||||
if (item.Type == Common.Enums.ConversationType.UE)
|
||||
{
|
||||
<div style="display: flex; "
|
||||
dir="rtl" class="p-1 rounded w-100">
|
||||
dir="rtl" class="p-1 rounded w-100">
|
||||
<div class="bg-green-100 border p-2 rounded text-end" dir="rtl">
|
||||
@item.text
|
||||
</div>
|
||||
@@ -17,8 +17,16 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
<div id="target" style="text-align: center;">
|
||||
@if (!target&& !item.IsRead)
|
||||
{
|
||||
target = true;
|
||||
<p>ـــــــــــــــــــــــــ</p>
|
||||
}
|
||||
|
||||
</div>
|
||||
<div style="display: flex; "
|
||||
dir="ltr" class="p-1 rounded w-100">
|
||||
dir="ltr" class="p-1 rounded w-100">
|
||||
<div class="bg-white border p-3 rounded text-end" dir="rtl">
|
||||
@item.text
|
||||
</div>
|
||||
@@ -35,6 +43,12 @@
|
||||
|
||||
|
||||
@code {
|
||||
// [Parameter] public List<Read_ConversationDto> Conversations { get; set; }
|
||||
bool target = false;
|
||||
// [Parameter] public List<Read_ConversationDto> Conversations { get; set; }
|
||||
[Parameter] public List<Read_ConversationResponseDto> SelectedConversationItems { get; set; }
|
||||
protected override Task OnParametersSetAsync()
|
||||
{
|
||||
target = false;
|
||||
return base.OnParametersSetAsync();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user