add buttons to resend and clear all objects

This commit is contained in:
marlon-erler
2024-07-11 02:29:00 +02:00
parent cf935b400a
commit 687d378eb4
6 changed files with 85 additions and 25 deletions
+21 -3
View File
@@ -131,19 +131,37 @@ export function ChatOptionModal(chat: Chat, isPresented: React.State<boolean>) {
<hr></hr>
<div class="flex-column gap">
<div class="flex-column gap width-input">
<button on:click={chat.resendObjects}>
{translation.resendObjects}
<span class="icon">replay</span>
</button>
</div>
<hr></hr>
<div class="flex-column gap width-input">
<button
class="danger"
on:click={chat.clearObjects}
toggle:disabled={chat.cannotClearObjects}
>
{translation.clearObjects}
<span class="icon">delete_sweep</span>
</button>
<button
class="danger"
on:click={chat.clearMessages}
toggle:disabled={chat.cannotClearMessages}
>
{translation.clearChatMessages}
<span class="icon">delete_sweep</span>
<span class="icon">chat_error</span>
</button>
<button class="danger" on:click={deleteChat}>
{translation.removeChat}
<span class="icon">delete</span>
<span class="icon">delete_forever</span>
</button>
</div>
</main>