aktueller Stand
This commit is contained in:
@@ -713,12 +713,19 @@ function App() {
|
||||
const entry = configMap.get(storeId);
|
||||
const isVisible = entry && !entry.hidden;
|
||||
const needsRestore = entry && entry.hidden;
|
||||
const blockedByNoPickups = store.hasPickupSlots === false;
|
||||
let statusLabel = 'Hinzufügen';
|
||||
let statusClass = 'text-blue-600';
|
||||
if (isVisible) {
|
||||
statusLabel = 'Bereits in Konfiguration';
|
||||
statusClass = 'text-gray-500';
|
||||
} else if (needsRestore) {
|
||||
statusLabel = 'Ausgeblendet – erneut hinzufügen';
|
||||
}
|
||||
if (blockedByNoPickups) {
|
||||
statusLabel = 'Keine Pickups – automatisch verborgen';
|
||||
statusClass = 'text-amber-600';
|
||||
}
|
||||
return (
|
||||
<button
|
||||
key={storeId}
|
||||
@@ -735,7 +742,7 @@ function App() {
|
||||
{store.zip || ''} {store.city}
|
||||
</p>
|
||||
)}
|
||||
<p className={`text-xs mt-2 ${isVisible ? 'text-gray-500' : 'text-blue-600'}`}>{statusLabel}</p>
|
||||
<p className={`text-xs mt-2 ${statusClass}`}>{statusLabel}</p>
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user