Allow delete all if no chat selected

This commit is contained in:
Webifi 2023-05-29 18:10:22 -05:00
parent da5745ffdf
commit 54dde8afad
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@
<a href={'#'} class="dropdown-item" class:is-disabled={!chatId} on:click|preventDefault={() => { if (chatId) showChatMenu = false; deleteChat() }}> <a href={'#'} class="dropdown-item" class:is-disabled={!chatId} on:click|preventDefault={() => { if (chatId) showChatMenu = false; deleteChat() }}>
<span class="menu-icon"><Fa icon={faTrash}/></span> Delete Chat <span class="menu-icon"><Fa icon={faTrash}/></span> Delete Chat
</a> </a>
<a href={'#'} class="dropdown-item" class:is-disabled={!chatId} on:click|preventDefault={() => { if (chatId) showChatMenu = false; confirmClearChats() }}> <a href={'#'} class="dropdown-item" on:click|preventDefault={() => { if (chatId) showChatMenu = false; confirmClearChats() }}>
<span class="menu-icon"><Fa icon={faTrashCan}/></span> Delete ALL Chats <span class="menu-icon"><Fa icon={faTrashCan}/></span> Delete ALL Chats
</a> </a>
<hr class="dropdown-divider"> <hr class="dropdown-divider">