feat: add employee push test button

This commit is contained in:
2026-09-09 12:55:26 +02:00
parent b3dd46195d
commit 5b6579423b
3 changed files with 117 additions and 1 deletions

View File

@@ -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,
}
}