feat: add employee push test button
This commit is contained in:
@@ -76,6 +76,12 @@ export const useDesktopPush = () => {
|
||||
})
|
||||
}
|
||||
|
||||
const sendTestPushToProfile = async (profileId) => {
|
||||
return await $api(`/api/notifications/test-push/profile/${encodeURIComponent(profileId)}`, {
|
||||
method: "POST",
|
||||
})
|
||||
}
|
||||
|
||||
return {
|
||||
supported,
|
||||
permission,
|
||||
@@ -85,5 +91,6 @@ export const useDesktopPush = () => {
|
||||
loadConfig,
|
||||
subscribe,
|
||||
sendTestPush,
|
||||
sendTestPushToProfile,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user