mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-18 22:54:41 +00:00
fix(app): dismiss toast notifications when questions or permissions a… (#16758)
This commit is contained in:
@@ -424,6 +424,17 @@ export default function Layout(props: ParentProps) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (
|
||||||
|
e.details?.type === "question.replied" ||
|
||||||
|
e.details?.type === "question.rejected" ||
|
||||||
|
e.details?.type === "permission.replied"
|
||||||
|
) {
|
||||||
|
const props = e.details.properties as { sessionID: string }
|
||||||
|
const sessionKey = `${e.name}:${props.sessionID}`
|
||||||
|
dismissSessionAlert(sessionKey)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if (e.details?.type !== "permission.asked" && e.details?.type !== "question.asked") return
|
if (e.details?.type !== "permission.asked" && e.details?.type !== "question.asked") return
|
||||||
const title =
|
const title =
|
||||||
e.details.type === "permission.asked"
|
e.details.type === "permission.asked"
|
||||||
|
|||||||
Reference in New Issue
Block a user