Skip to content

Commit f15b899

Browse files
committed
chore/qg-290: добавлено дебажное логгирование метода включения уведомлений
1 parent 2164595 commit f15b899

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/src/main/resources/templates/therapist/appointments/notifications-settings-component.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,25 @@ <h6>Настройки напоминаний</h6>
5353
}
5454

5555
this.isActive = true;
56+
console.info("Notification settings initialized")
5657
},
5758

5859
async enable() {
60+
console.info("Enabling notifications")
5961
const perm = await this.ensurePermission();
62+
console.debug('enable(): permission', perm);
6063
if (perm !== 'granted') {
6164
return;
6265
}
6366

6467
const sub = await this.subscribe();
68+
console.debug('enable(): sub', sub);
6569
if (!sub) {
6670
return;
6771
}
6872

6973
const saved = await this.saveSubscription(sub);
74+
console.debug('enable(): savedSub', saved);
7075
if (!saved) {
7176
return;
7277
}

0 commit comments

Comments
 (0)