Add displays for public reports on the planning page

This commit is contained in:
Eli Ribble 2026-03-23 17:20:26 -07:00
parent fb853a2bd3
commit d5cf65f4cb
No known key found for this signature in database

View file

@ -22,6 +22,10 @@ interface Props {
const props = defineProps<Props>();
function icon(signal: Signal): string {
if (signal.type == "flyover pool") {
return "bi-pond";
} else if (signal.type == "publicreport nuisance") {
return "bi-mosquito";
} else if (signal.type == "publicreport water") {
return "bi-water";
} else {
return "bi-mosquito";
@ -37,8 +41,10 @@ function location(signal: Signal): string {
function title(signal: Signal): string {
if (signal.type == "flyover pool") {
return "Green pool";
} else {
return "Unknown signal";
} else if (signal.type == "publicreport nuisance") {
return "Nuisance";
} else if (signal.type == "publicreport water") {
return "Standing water";
}
}
</script>