add frontend interface to send reactions

This commit is contained in:
marlon-erler
2026-04-07 18:39:55 +00:00
parent 1c74484644
commit ad978807dc
7 changed files with 349 additions and 39 deletions
+27
View File
@@ -2,6 +2,8 @@ import * as React from "bloatless-react";
import ChatMessageViewModel from "../../ViewModel/Chat/chatMessageViewModel";
import { translations } from "../translations";
import { ReactionSymbols } from "../../Model/Chat/chatModel";
import { MessageReactionButton } from "../Components/messageReactionButton";
export function ChatMessageInfoModal(
chatMessageViewModel: ChatMessageViewModel,
@@ -87,6 +89,31 @@ export function ChatMessageInfoModal(
<span class="icon">key</span>
</button>
</div>
<hr></hr>
<div class="flex-row gap">
{MessageReactionButton(
chatMessageViewModel,
ReactionSymbols.ThumbsUp,
)}
{MessageReactionButton(
chatMessageViewModel,
ReactionSymbols.Check,
)}
{MessageReactionButton(
chatMessageViewModel,
ReactionSymbols.Attention,
)}
{MessageReactionButton(
chatMessageViewModel,
ReactionSymbols.DoubleAttention,
)}
{MessageReactionButton(
chatMessageViewModel,
ReactionSymbols.Question,
)}
</div>
</main>
<button on:click={chatMessageViewModel.hideInfoModal}>
{translations.general.closeButton}