feat(useToast): allow clearing all notifications (#1695)

This commit is contained in:
Moritz
2024-04-22 11:01:48 +02:00
committed by GitHub
parent 8d9d9736ba
commit 82d619b2a7

View File

@@ -30,9 +30,14 @@ export function useToast () {
} }
} }
function clear () {
notifications.value = []
}
return { return {
add, add,
remove, remove,
update update,
clear
} }
} }