fix: neumožnit vybrat zavřený podnik kliknutím v záhlaví
CI / Generate TypeScript types (push) Successful in 10s
CI / Server unit tests (push) Successful in 30s
CI / Build server (push) Successful in 29s
CI / Build client (push) Successful in 42s
CI / Playwright E2E tests (push) Successful in 1m57s
CI / Build and push Docker image (push) Successful in 46s
CI / Notify (push) Successful in 2s

This commit is contained in:
mates committed 2026-10-27 22:02:25 +01:00
1 parent 882a2f38a7
commit 05d27b6693
2 files changed
+19 -1

No files matched your search

+3 -1
View File
@@ -637,9 +637,11 @@ function App() {
} else {
content = <div className="restaurant-error">Chyba načtení dat</div>
}
// Zavřený podnik nelze vybrat kliknutím na záhlaví
const canSelectLocation = canChangeChoice && !menu?.closed;
return <Col md={6} lg className='mt-3'>
<div className="restaurant-card">
<div className="restaurant-header" style={{ cursor: canChangeChoice ? 'pointer' : 'default' }} onClick={() => doAddClickFoodChoice(location)}>
<div className="restaurant-header" style={{ cursor: canSelectLocation ? 'pointer' : 'default' }} onClick={() => canSelectLocation && doAddClickFoodChoice(location)}>
<div className="restaurant-header-content">
<h3>
{getLunchChoiceName(location)}