fix: clear params after mark as read
This commit is contained in:
parent
4af4d12625
commit
939176fd03
@ -14,7 +14,10 @@ export const notificationsStore = defineStore('crm-notifications', () => {
|
|||||||
const mark_as_read = createResource({
|
const mark_as_read = createResource({
|
||||||
url: 'crm.api.notifications.mark_as_read',
|
url: 'crm.api.notifications.mark_as_read',
|
||||||
auto: false,
|
auto: false,
|
||||||
onSuccess: () => notifications.reload(),
|
onSuccess: () => {
|
||||||
|
mark_as_read.params = {}
|
||||||
|
notifications.reload()
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
function toggle() {
|
function toggle() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user