Hide per-date rescrape button for past columns
Scraping a past date via the hotel-page backend wouldn't return anything useful (Booking.com shows no availability for dates gone by). The ↻ button is now only rendered for today and future dates. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c49985bec7
commit
0721769e03
1 changed files with 17 additions and 15 deletions
|
|
@ -1729,6 +1729,7 @@ const RateMatrixTab: React.FC = () => {
|
||||||
<span style={styles.scrapeAge}>{scrapeAge}</span>
|
<span style={styles.scrapeAge}>{scrapeAge}</span>
|
||||||
) : null}
|
) : null}
|
||||||
<div style={{ display: 'flex', gap: 2, alignItems: 'center', justifyContent: 'center' }}>
|
<div style={{ display: 'flex', gap: 2, alignItems: 'center', justifyContent: 'center' }}>
|
||||||
|
{d >= todayStr && (
|
||||||
<button
|
<button
|
||||||
onClick={() => enqueueScrape(d, d)}
|
onClick={() => enqueueScrape(d, d)}
|
||||||
disabled={queuePos >= 0}
|
disabled={queuePos >= 0}
|
||||||
|
|
@ -1744,6 +1745,7 @@ const RateMatrixTab: React.FC = () => {
|
||||||
>
|
>
|
||||||
{scrapingDate === d ? '...' : queuePos >= 0 ? `#${queuePos + 1}` : '↻'}
|
{scrapingDate === d ? '...' : queuePos >= 0 ? `#${queuePos + 1}` : '↻'}
|
||||||
</button>
|
</button>
|
||||||
|
)}
|
||||||
{locationName && d >= todayStr && (
|
{locationName && d >= todayStr && (
|
||||||
<a
|
<a
|
||||||
href={buildSearchUrl(locationName, d)}
|
href={buildSearchUrl(locationName, d)}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue