aktueller Stand

This commit is contained in:
root
2025-11-09 14:46:36 +01:00
parent cd93800ffb
commit e90f9299c3
4 changed files with 46 additions and 8 deletions

View File

@@ -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>
);
})}