fix(appearance): colour rows queued for LoTW upload, not just paper cards
The "to send" rule only looked at qsl_sent, so a contact waiting to go to LoTW — marked R, and the commonest not-gone-out-yet state in a digital log — matched nothing and stayed uncoloured. It now covers any route still queued, and the label says so.
This commit is contained in:
@@ -21,7 +21,10 @@ export function matchRowRule(q: any): string | null {
|
||||
if (yes(q.lotw_rcvd)) return 'confirmed_lotw';
|
||||
if (yes(q.qsl_rcvd) || yes(q.eqsl_rcvd)) return 'confirmed_paper';
|
||||
if (yes(q.qsl_sent) || yes(q.lotw_sent) || yes(q.eqsl_sent)) return 'sent_waiting';
|
||||
if (owed(q.qsl_sent)) return 'to_send';
|
||||
// Any route still queued, not just the paper card. LoTW marks a pending upload
|
||||
// as R, which is the commonest "not gone out yet" state in a digital log and
|
||||
// was matching nothing at all while this only looked at qsl_sent.
|
||||
if (owed(q.qsl_sent) || owed(q.lotw_sent) || owed(q.eqsl_sent)) return 'to_send';
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user