mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-29 19:30:37 +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 {
|
return {
|
||||||
add,
|
add,
|
||||||
remove,
|
remove,
|
||||||
update
|
update,
|
||||||
|
clear
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user