-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88e3e01
commit 464a120
Showing
5 changed files
with
62 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<template> | ||
<v-list-item> | ||
<v-btn | ||
color="primary" | ||
variant="outlined" | ||
:text="$t('chat.deleteAllChatHistory')" | ||
@click="deleteChats" | ||
></v-btn> | ||
</v-list-item> | ||
<ConfirmModal ref="confirmModal" /> | ||
</template> | ||
|
||
<script setup> | ||
import { ref } from "vue"; | ||
import { useStore } from "vuex"; | ||
import i18n from "@/i18n"; | ||
import ConfirmModal from "@/components/ConfirmModal.vue"; | ||
const emit = defineEmits(["close-dialog"]); | ||
const confirmModal = ref(); | ||
const store = useStore(); | ||
async function deleteChats() { | ||
const confirm = await confirmModal.value.showModal( | ||
"", | ||
i18n.global.t("chat.confirmDeleteAllChatHistory"), | ||
); | ||
if (confirm) { | ||
store.commit("deleteChats"); | ||
emit("close-dialog"); | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
464a120
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
chatall – ./
chatall-llm.vercel.app
chatall-git-main-sunner.vercel.app
chatall-sunner.vercel.app