232201_dev_to_test #59

Merged
alexm merged 48 commits from dev into test 2023-06-01 07:18:41 +00:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 9e0adce4f1 - Show all commits

View File

@ -193,7 +193,7 @@ async function toggleNotif(notif, chip) {
notif.active = !notif.active; notif.active = !notif.active;
} }
if (notif.active) { if (notif.active) {
await axios.post( let notificationSubscription = await axios.post(
`NotificationSubscriptions`, `NotificationSubscriptions`,
{ {
notificationFk: notif.id, notificationFk: notif.id,
@ -205,6 +205,7 @@ async function toggleNotif(notif, chip) {
}, },
} }
); );
worker.value.subscribedNotifs.push(notificationSubscription.data);
quasar.notify({ quasar.notify({
type: 'positive', type: 'positive',
message: t('worker.notificationsManager.subscribed'), message: t('worker.notificationsManager.subscribed'),