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
+6
View File
@@ -96,6 +96,12 @@ export default class ChatViewModel {
this.chatModel.setColor(newColor);
};
remove = (): void => {
this.close();
this.chatModel.delete();
this.chatListViewModel.restoreChats();
}
// restore
restorePageSelection = (): void => {
const path: string[] = storageKeys.chatLastUsedPage(this.chatModel.id);