...
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
@using Hushian.Application.Dtos
|
||||
<small>پیام های اخیر شما ...</small>
|
||||
<div class="row">
|
||||
@foreach (var item in Conversations)
|
||||
{
|
||||
<div class="col-sm-3">
|
||||
<Card>
|
||||
<CardBody>
|
||||
<CardText>@GetTitleCon(item.Title)</CardText>
|
||||
<Button Color="ButtonColor.Primary" @onclick="async()=>await OnMultipleOfThree.InvokeAsync(item.ID)" Type="ButtonType.Link">Go somewhere</Button>
|
||||
</CardBody>
|
||||
<ul class="list-group list-group-flush">
|
||||
<li class="list-group-item">@item.ExperFullName (@item.Cdate item.Ctime)</li>
|
||||
</ul>
|
||||
@if (item.status == Hushian.Enums.ConversationStatus.InProgress && item.NoReadCount > 0)
|
||||
{
|
||||
<Badge Color="BadgeColor.Danger"
|
||||
Position="Position.Absolute"
|
||||
Placement="BadgePlacement.TopLeft"
|
||||
IndicatorType="BadgeIndicatorType.RoundedPill"
|
||||
VisuallyHiddenText="unread messages">@item.NoReadCount </Badge>
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</Card>
|
||||
</div>
|
||||
}
|
||||
|
||||
</div>
|
||||
|
||||
@code {
|
||||
[Parameter] public EventCallback<int> OnMultipleOfThree { get; set; }
|
||||
[Parameter] public List<ConversationDto> Conversations { get; set; }
|
||||
string GetTitleCon(string str)
|
||||
{
|
||||
if (str.Length > 15) return str.Substring(0, 15) + "...";
|
||||
return str;
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user