Skip to content

Commit

Permalink
Update LargeChatComponent.razor
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Sep 3, 2023
1 parent c0bfda5 commit 5f21d98
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/web/Client/Features/Chat/LargeChatComponent.razor
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,13 @@
Delay="500"
Selector=".message-sent-successfully-container" />

<div title="Din besked er blevet sendt" class="message-sent-successfully-container">
<MudIcon Icon="@Icons.Material.Outlined.CheckCircleOutline"
Class="message-sent-successfully" />
</div>
@if (LastMessageWasSentSuccessfullyByCurrentUser)
{
<div title="Din besked er blevet sendt" class="message-sent-successfully-container">
<MudIcon Icon="@Icons.Material.Outlined.CheckCircleOutline"
Class="message-sent-successfully" />
</div>
}

<MudTextField @bind-Value="_userText"
FullWidth
Expand Down Expand Up @@ -130,7 +133,7 @@

private MudAnimate _messageSuccessfullySentAnimation = null!;
private Dictionary<Guid, Guid> _lastSuccessfullySentMessageForChat = new();
private bool LastMessageWasSentSuccessfully
private bool LastMessageWasSentSuccessfullyByCurrentUser
{
get
{
Expand Down

0 comments on commit 5f21d98

Please sign in to comment.