Skip to content

Commit f721255

Browse files
committed
SAK-51526 Push is not enabled message should not be shown if the push notifications are disabled
1 parent 13a5406 commit f721255

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webcomponents/tool/src/main/frontend/packages/sakai-notifications/src/SakaiNotifications.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ export class SakaiNotifications extends SakaiElement {
451451
` : nothing}
452452
453453
${this._state === NOTIFICATIONS ? html`
454-
${Notification.permission !== "granted" && this._online ? html`
454+
${Notification.permission !== "granted" && this._online && this.pushEnabled ? html`
455455
<div class="alert alert-warning">
456456
<span class="me-1">${this._i18n.push_not_enabled}</span>
457457
<button type="button"

0 commit comments

Comments
 (0)