mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 08:12:15 +00:00
team invitation notification with broadcasting
This commit is contained in:
17
resources/js/store/modules/userAuth.js
vendored
17
resources/js/store/modules/userAuth.js
vendored
@@ -180,6 +180,23 @@ const mutations = {
|
||||
state.user.data.relationships.readNotifications.data = []
|
||||
state.user.data.relationships.unreadNotifications.data = []
|
||||
},
|
||||
CLEAR_NOTIFICATION_ACTION_DATA(state, notificationId) {
|
||||
if (state.user.data.relationships.readNotifications.data.length) {
|
||||
state.user.data.relationships.readNotifications.data.map(notification => {
|
||||
if (notification.data.id === notificationId) {
|
||||
notification.data.attributes.action = undefined
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
if (state.user.data.relationships.unreadNotifications.data.length) {
|
||||
state.user.data.relationships.unreadNotifications.data.map(notification => {
|
||||
if (notification.data.id === notificationId) {
|
||||
notification.data.attributes.action = undefined
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
const getters = {
|
||||
|
||||
Reference in New Issue
Block a user