mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
feat(useToast): allow clearing all notifications (#1695)
This commit is contained in:
@@ -30,9 +30,14 @@ export function useToast () {
|
||||
}
|
||||
}
|
||||
|
||||
function clear () {
|
||||
notifications.value = []
|
||||
}
|
||||
|
||||
return {
|
||||
add,
|
||||
remove,
|
||||
update
|
||||
update,
|
||||
clear
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user