fix: hide enrichment in portal, CF disabled button, no UAT flash, fix overlaps
SelectionToolbar: new hideEnrichment prop hides the Enrichment button. Portal uses it to show only Export + Clear in selection toolbar. Portal feature panel: added disabled "Solicita extras CF" button with tooltip "Sectiune platita — contacteaza administratorul". Initial map zoom: starts at zoom 15 (close-up) instead of 7 (Romania overview). Prevents the UAT boundaries flash before fitBounds runs. Applied to both ParcelSync Harta tab and Portal. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1502,6 +1502,7 @@ function HartaContent() {
|
||||
ref={mapHandleRef}
|
||||
className="h-full w-full"
|
||||
basemap={basemap}
|
||||
zoom={15}
|
||||
selectionType={selectionMode}
|
||||
onFeatureClick={handleFeatureClick}
|
||||
onSelectionChange={setSelectedFeatures}
|
||||
@@ -1579,6 +1580,18 @@ function HartaContent() {
|
||||
</>
|
||||
);
|
||||
})()}
|
||||
<div className="pt-1.5 mt-1.5 border-t">
|
||||
<Button
|
||||
size="sm"
|
||||
variant="outline"
|
||||
className="w-full h-7 text-[11px] gap-1 opacity-50 cursor-not-allowed"
|
||||
disabled
|
||||
title="Sectiune platita — contacteaza administratorul"
|
||||
>
|
||||
<FileText className="h-3 w-3" />
|
||||
Solicita extras CF
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
@@ -1590,6 +1603,7 @@ function HartaContent() {
|
||||
selectedFeatures={selectedFeatures}
|
||||
selectionMode={selectionMode}
|
||||
onSelectionModeChange={handleSelectionModeChange}
|
||||
hideEnrichment
|
||||
onClearSelection={() => {
|
||||
mapHandleRef.current?.clearSelection();
|
||||
setSelectedFeatures([]);
|
||||
|
||||
Reference in New Issue
Block a user