fix error not being able to unsubscribe instantly
gitea/salix-front/pipeline/head There was a failure building this commit
Details
gitea/salix-front/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
52988f6299
commit
9e0adce4f1
|
@ -193,7 +193,7 @@ async function toggleNotif(notif, chip) {
|
|||
notif.active = !notif.active;
|
||||
}
|
||||
if (notif.active) {
|
||||
await axios.post(
|
||||
let notificationSubscription = await axios.post(
|
||||
`NotificationSubscriptions`,
|
||||
{
|
||||
notificationFk: notif.id,
|
||||
|
@ -205,6 +205,7 @@ async function toggleNotif(notif, chip) {
|
|||
},
|
||||
}
|
||||
);
|
||||
worker.value.subscribedNotifs.push(notificationSubscription.data);
|
||||
quasar.notify({
|
||||
type: 'positive',
|
||||
message: t('worker.notificationsManager.subscribed'),
|
||||
|
|
Loading…
Reference in New Issue