HomePhabricator

[Cashtab] [notification permission 2 of 2] Show modal after user notification…

Description

[Cashtab] [notification permission 2 of 2] Show modal after user notification decision

Summary:
T2882

Depends on D12905

Show a modal that refreshes the page after the user accepts notification permissions.

Show a warning modal on load if Cashtab has notification permission denied and peristent storage denied.

Test Plan:

npm run build
netlify deploy

Open the URL netlify has deployed the site to (the dev deploy URL should be new every time).

Open the dev console.

Note the site opens with an "ask for notification permission" request.

Accept the request.

Note the success modal.

Click okay. Note page refreshes and peristent storage status is granted.

Redeploy to a new URL (netlify deploy should do this automatically if you don't use the --prod flag)
Reject the notification permission
Note the warning modal
Note the warning modal appears on load every time if persistent storage is false and notification permission is not granted

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Differential Revision: https://reviews.bitcoinabc.org/D12906

Details

Provenance
bytesofmanAuthored on Dec 16 2022, 18:26
bytesofmanPushed on Dec 19 2022, 17:07
Reviewer
Restricted Project
Differential Revision
D12906: [Cashtab] [notification permission 2 of 2] Show modal after user notification decision
Parents
rABC35a50715757e: [Cashtab] [notification permission 1 of 2] Ask for notification permission if…
Branches
Unknown
Tags
Unknown