feat(app): disallow duplicate attachments (#39464)
This commit is contained in:
parent
5b11635d97
commit
eca5e68a5e
21 changed files with 124 additions and 3 deletions
|
|
@ -368,6 +368,7 @@ export function usePromptInputV2Controller(props: PromptInputV2ControllerProps):
|
|||
title: language.t("prompt.toast.pasteUnsupported.title"),
|
||||
description: language.t("prompt.toast.pasteUnsupported.description"),
|
||||
}),
|
||||
duplicate: () => showToast({ title: language.t("prompt.toast.attachmentDuplicate.title") }),
|
||||
onError: (error) =>
|
||||
showToast({
|
||||
variant: "error",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue