Skip to content

Add button to re-enable notifications in profile settings#45

Closed
ProLoser wants to merge 1 commit intomainfrom
feat/enable-notifications-button
Closed

Add button to re-enable notifications in profile settings#45
ProLoser wants to merge 1 commit intomainfrom
feat/enable-notifications-button

Conversation

@ProLoser
Copy link
Owner

This commit adds a button to the user profile dialog that allows users to re-attempt enabling notifications if they have previously ignored or rejected the permission prompt.

The button's state and text dynamically update based on the current notification permission status:

  • If permission is granted, the button is disabled and displays 'Notifications Enabled'.
  • Otherwise, the button is enabled and displays 'Enable Notifications'.

Clicking the button triggers the browser's notification permission prompt. If permission is granted, the FCM token is saved to the database. A message is displayed to the user indicating the outcome of the action.

This commit adds a button to the user profile dialog that allows users to re-attempt enabling notifications if they have previously ignored or rejected the permission prompt.

The button's state and text dynamically update based on the current notification permission status:
- If permission is granted, the button is disabled and displays 'Notifications Enabled'.
- Otherwise, the button is enabled and displays 'Enable Notifications'.

Clicking the button triggers the browser's notification permission prompt. If permission is granted, the FCM token is saved to the database. A message is displayed to the user indicating the outcome of the action.
@ProLoser ProLoser closed this Jun 27, 2025
@ProLoser ProLoser deleted the feat/enable-notifications-button branch June 27, 2025 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant