mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-09 16:18:00 -05:00
fixed snackbar queued
This commit is contained in:
@@ -60,7 +60,7 @@ const showSnackbar = ref(false)
|
|||||||
* subscribe to mutation of the snackbarQueue to detect new messages being added
|
* subscribe to mutation of the snackbarQueue to detect new messages being added
|
||||||
*/
|
*/
|
||||||
useMessageStore().$subscribe((mutation, state) => {
|
useMessageStore().$subscribe((mutation, state) => {
|
||||||
if ('snackbarQueue' in state && mutation.events.type == 'add') {
|
if ('snackbarQueue' in state) {
|
||||||
processQueue()
|
processQueue()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user