One Check every feed button: the top bar's (#416)

All Subscriptions' header had its own, beside Mark everything read, doing
what the top bar's Refresh does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVDqdiQEMWAkNGQ2tYA
This commit is contained in:
2026-11-07 17:26:53 +00:00
parent 5a8a7fb0cc
commit 1b0b155226
4 changed files with 9 additions and 3 deletions

View File

@@ -62,7 +62,6 @@ function renderFeed(){
subscribe to, newest first · ${unreadAll} unread</div>
</div>
<div class="acts">
<button class="btn ico" data-a="scanall" title="Check every feed now" aria-label="Check every feed now">${ICON.scan}</button>
<button class="btn ico" data-a="readall" title="Mark everything read" aria-label="Mark everything read">${ICON.checks}</button>
</div>
</div>`) + `
@@ -182,7 +181,6 @@ async function feedAction(a: string,f: Feed){
}
/// All Subscriptions' own buttons: a feed's, across every feed you read.
async function allAction(a: string){
if(a==='scanall') return scanAll();
if(a==='readall'){
const n=S.feeds.reduce((k,x)=>k+(x.unread||0),0);
if(!n){ toast('Nothing unread'); return; }

View File

@@ -64,7 +64,7 @@ function paintScanning(){
const self=spinFeed!==null&&spinFeed===S.feed, any=document.body.classList.contains('scan-any');
document.body.classList.toggle('scan-this',self);
// Turning was all that said a check was running, and with motion reduced nothing turns (#310).
for(const b of $$('#scanAll,.fhead [data-a=scanall],.fhead [data-a=scan]')){
for(const b of $$('#scanAll,.fhead [data-a=scan]')){
const on=b.dataset.a==='scan'?self:any;
b.dataset.label??=b.getAttribute('aria-label')!;
if(on) b.setAttribute('aria-busy','true'); else b.removeAttribute('aria-busy');