From 35a3b6b87aca3947ccf99b62ae92f4b7ee562c3c Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Mon, 2 Jan 2023 13:45:24 +0100 Subject: [PATCH] Hide push notification prompt in inbox after accepting --- app/javascript/retrospring/features/webpush/enable.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/javascript/retrospring/features/webpush/enable.ts b/app/javascript/retrospring/features/webpush/enable.ts index 56088c35..4c3c0daf 100644 --- a/app/javascript/retrospring/features/webpush/enable.ts +++ b/app/javascript/retrospring/features/webpush/enable.ts @@ -32,6 +32,8 @@ export function enableHandler (event: Event): void { .forEach(button => button.classList.remove('d-none')); sender.classList.add('d-none'); + document.querySelector('.push-settings')?.classList.add('d-none'); + localStorage.setItem('dismiss-push-settings-prompt', 'true'); document.getElementById('subscription-count').textContent = data.message; } else {