Skip to content

Commit

Permalink
feat(useToast): allow clearing all notifications (#1695)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoritzBru committed Apr 22, 2024
1 parent 8d9d973 commit 82d619b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/runtime/composables/useToast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,14 @@ export function useToast () {
}
}

function clear () {
notifications.value = []
}

return {
add,
remove,
update
update,
clear
}
}

0 comments on commit 82d619b

Please sign in to comment.