add button to remove chat

This commit is contained in:
marlon-erler
2024-07-20 20:48:13 +02:00
parent 995f82f3ef
commit 819c8f4cac
6 changed files with 29 additions and 2 deletions
+7
View File
@@ -135,6 +135,13 @@ export function SettingsPage(chatViewModel: ChatViewModel) {
);
})}
</div>
<hr></hr>
<button class="danger width-input flex-no" on:click={chatViewModel.remove}>
{translations.chatPage.settings.deleteChatButton}
<span class="icon">delete_forever</span>
</button>
</div>
</div>
);
+2
View File
@@ -95,6 +95,8 @@ const englishTranslations = {
encryptionKeyLabel: "Encryption key",
setEncryptionKeyButtonAudioLabel: "set encryption key",
showEncryptionKey: "Show encryption key",
deleteChatButton: "Delete entire chat",
},
},
};