feat: Add support for project cancellation status across the application
This commit is contained in:
@@ -29,6 +29,7 @@ function ProjectsMapPageContent() {
|
||||
in_progress_design: true,
|
||||
in_progress_construction: true,
|
||||
fulfilled: true,
|
||||
cancelled: true,
|
||||
});
|
||||
const [activeBaseLayer, setActiveBaseLayer] = useState("OpenStreetMap");
|
||||
const [activeOverlays, setActiveOverlays] = useState([]);
|
||||
@@ -57,6 +58,11 @@ function ProjectsMapPageContent() {
|
||||
label: "Completed",
|
||||
shortLabel: "Zakończony",
|
||||
},
|
||||
cancelled: {
|
||||
color: "#EF4444",
|
||||
label: "Cancelled",
|
||||
shortLabel: "Wycofany",
|
||||
},
|
||||
};
|
||||
|
||||
// Toggle all status filters
|
||||
|
||||
@@ -119,6 +119,7 @@ export default function ProjectListPage() {
|
||||
case "in_progress_design": return t('projectStatus.in_progress_design');
|
||||
case "in_progress_construction": return t('projectStatus.in_progress_construction');
|
||||
case "fulfilled": return t('projectStatus.fulfilled');
|
||||
case "cancelled": return t('projectStatus.cancelled');
|
||||
default: return "-";
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user