We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2164595 commit f15b899Copy full SHA for f15b899
1 file changed
app/src/main/resources/templates/therapist/appointments/notifications-settings-component.html
@@ -53,20 +53,25 @@ <h6>Настройки напоминаний</h6>
53
}
54
55
this.isActive = true;
56
+ console.info("Notification settings initialized")
57
},
58
59
async enable() {
60
+ console.info("Enabling notifications")
61
const perm = await this.ensurePermission();
62
+ console.debug('enable(): permission', perm);
63
if (perm !== 'granted') {
64
return;
65
66
67
const sub = await this.subscribe();
68
+ console.debug('enable(): sub', sub);
69
if (!sub) {
70
71
72
73
const saved = await this.saveSubscription(sub);
74
+ console.debug('enable(): savedSub', saved);
75
if (!saved) {
76
77
0 commit comments