From 05a50e62cceefaedfb1a7f71d6123295b5af4b4f Mon Sep 17 00:00:00 2001 From: Federico Brigante Date: Wed, 13 May 2020 12:36:24 +0200 Subject: [PATCH] Show `open-all-notifications` on unsaved filters --- source/features/open-all-notifications.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/features/open-all-notifications.tsx b/source/features/open-all-notifications.tsx index f27e00a8749..b5c6b210ceb 100644 --- a/source/features/open-all-notifications.tsx +++ b/source/features/open-all-notifications.tsx @@ -55,7 +55,11 @@ function addOpenReposButton(): void { } function addOpenAllButton(): void { - select('.js-check-all-container .Box-header')!.append( + // Selector works on: + // https://github.com/notifications (Grouped by date) + // https://github.com/notifications (Grouped by repo) + // https://github.com/notifications?query=reason%3Acomment (which is an unsaved filter) + select('.js-check-all-container .js-bulk-action-toasts ~ div .Box-header')!.append(