1
1
<template >
2
2
<FontAwesomeIcon
3
- v-if =" recordTypesToIcons.has(recordType)"
3
+ v-if =" recordTypesToIcons.has(recordType.toLowerCase() )"
4
4
:icon ="
5
- recordTypesToIcons.get(recordType) ?? []
5
+ recordTypesToIcons.get(recordType.toLowerCase() ) ?? []
6
6
/* Fallback array is a never case, since TS doesn't infer the typeguard from `v-if` */
7
7
"
8
8
/>
@@ -28,69 +28,69 @@ const recordTypesToIcons = ref(
28
28
/** *************************************************
29
29
********* Police and public interactions **********
30
30
**************************************************/
31
- [' Police & public interactions' , faPersonMilitaryToPerson ], // Top level with ampersand
32
- [' Police and public interactions' , faPersonMilitaryToPerson ], // Top level with word
33
- [' Accident Reports ' , faPersonMilitaryToPerson ],
34
- [' Arrest Records ' , faPersonMilitaryToPerson ],
35
- [' Calls for Service ' , faPersonMilitaryToPerson ],
36
- [' Car GPS ' , faPersonMilitaryToPerson ],
37
- [' Citations ' , faPersonMilitaryToPerson ],
38
- [' Dispatch Logs ' , faPersonMilitaryToPerson ],
39
- [' Dispatch Recordings ' , faPersonMilitaryToPerson ],
40
- [' Field Contacts ' , faPersonMilitaryToPerson ],
41
- [' Incident Reports ' , faPersonMilitaryToPerson ],
42
- [' Misc Police Activity ' , faPersonMilitaryToPerson ],
43
- [' Officer Involved Shootings ' , faPersonMilitaryToPerson ],
44
- [' Stops ' , faPersonMilitaryToPerson ],
45
- [' Surveys ' , faPersonMilitaryToPerson ],
46
- [' Use of Force Reports ' , faPersonMilitaryToPerson ],
47
- [' Vehicle Pursuits ' , faPersonMilitaryToPerson ],
31
+ [' police & public interactions' , faPersonMilitaryToPerson ], // Top level with ampersand
32
+ [' police and public interactions' , faPersonMilitaryToPerson ], // Top level with word
33
+ [' accident reports ' , faPersonMilitaryToPerson ],
34
+ [' arrest records ' , faPersonMilitaryToPerson ],
35
+ [' calls for service ' , faPersonMilitaryToPerson ],
36
+ [' car gps ' , faPersonMilitaryToPerson ],
37
+ [' citations ' , faPersonMilitaryToPerson ],
38
+ [' dispatch logs ' , faPersonMilitaryToPerson ],
39
+ [' dispatch recordings ' , faPersonMilitaryToPerson ],
40
+ [' field contacts ' , faPersonMilitaryToPerson ],
41
+ [' incident reports ' , faPersonMilitaryToPerson ],
42
+ [' misc police activity ' , faPersonMilitaryToPerson ],
43
+ [' officer involved shootings ' , faPersonMilitaryToPerson ],
44
+ [' stops ' , faPersonMilitaryToPerson ],
45
+ [' surveys ' , faPersonMilitaryToPerson ],
46
+ [' use of force reports ' , faPersonMilitaryToPerson ],
47
+ [' vehicle pursuits ' , faPersonMilitaryToPerson ],
48
48
/** *************************************************
49
49
************* Info about officers ***************
50
50
**************************************************/
51
- [' Info about officers' , faPersonMilitaryPointing ], // Top level
52
- [' Complaints & Misconduct ' , faPersonMilitaryPointing ],
53
- [' Complaints and Misconduct ' , faPersonMilitaryPointing ],
54
- [' Daily Activity Logs ' , faPersonMilitaryPointing ],
55
- [' Training & Hiring Info ' , faPersonMilitaryPointing ],
56
- [' Training and Hiring Info ' , faPersonMilitaryPointing ],
57
- [' Personnel Records ' , faPersonMilitaryPointing ],
51
+ [' info about officers' , faPersonMilitaryPointing ], // Top level
52
+ [' complaints & misconduct ' , faPersonMilitaryPointing ],
53
+ [' complaints and misconduct ' , faPersonMilitaryPointing ],
54
+ [' daily activity logs ' , faPersonMilitaryPointing ],
55
+ [' training & hiring info ' , faPersonMilitaryPointing ],
56
+ [' training and hiring info ' , faPersonMilitaryPointing ],
57
+ [' personnel records ' , faPersonMilitaryPointing ],
58
58
/** *************************************************
59
59
************* Info about agencies ***************
60
60
**************************************************/
61
- [' Info about agencies' , faBuildingShield ], // Top level
62
- [' Annual & Monthly Reports ' , faBuildingShield ],
63
- [' Annual and Monthly Reports ' , faBuildingShield ],
64
- [' Budgets & Finances ' , faBuildingShield ],
65
- [' Budgets and Finances ' , faBuildingShield ],
66
- [' Contact Info & Agency Meta ' , faBuildingShield ],
67
- [' Contact Info and Agency Meta ' , faBuildingShield ],
68
- [' Geographic ' , faBuildingShield ],
69
- [' List of Data Sources ' , faBuildingShield ],
70
- [' Policies & Contracts ' , faBuildingShield ],
71
- [' Policies and Contracts ' , faBuildingShield ],
61
+ [' info about agencies' , faBuildingShield ], // Top level
62
+ [' annual & monthly reports ' , faBuildingShield ],
63
+ [' annual and monthly reports ' , faBuildingShield ],
64
+ [' budgets & finances ' , faBuildingShield ],
65
+ [' budgets and finances ' , faBuildingShield ],
66
+ [' contact info & agency meta ' , faBuildingShield ],
67
+ [' contact info and agency meta ' , faBuildingShield ],
68
+ [' geographic ' , faBuildingShield ],
69
+ [' list of data sources ' , faBuildingShield ],
70
+ [' policies & contracts ' , faBuildingShield ],
71
+ [' policies and contracts ' , faBuildingShield ],
72
72
/** *************************************************
73
73
********* Agency-published resources ************
74
74
**************************************************/
75
- [' Agency -published resources' , faFileShield ], // Top level
76
- [' Crime Maps & Reports ' , faFileShield ],
77
- [' Crime Maps and Reports ' , faFileShield ],
78
- [' Crime Statistics ' , faFileShield ],
79
- [' Media Bulletins ' , faFileShield ],
80
- [' Records Request Info ' , faFileShield ],
81
- [' Resources ' , faFileShield ],
82
- [' Sex Offender Registry ' , faFileShield ],
83
- [' Wanted Persons ' , faFileShield ],
75
+ [' agency -published resources' , faFileShield ], // Top level
76
+ [' crime maps & reports ' , faFileShield ],
77
+ [' crime maps and reports ' , faFileShield ],
78
+ [' crime statistics ' , faFileShield ],
79
+ [' media bulletins ' , faFileShield ],
80
+ [' records request info ' , faFileShield ],
81
+ [' resources ' , faFileShield ],
82
+ [' sex offender registry ' , faFileShield ],
83
+ [' wanted persons ' , faFileShield ],
84
84
/** *************************************************
85
- *********** Jails & Courts specific *************
85
+ *************** Jails & Courts ***** *************
86
86
**************************************************/
87
- [' Jails & courts' , faBuildingColumns ], // Top level
88
- [' Jails and courts' , faBuildingColumns ], // Top level
89
- [' Jails & courts specific' , faBuildingColumns ], // Top level
90
- [' Jails and courts specific' , faBuildingColumns ], // Top level
91
- [' Booking Reports ' , faBuildingColumns ],
92
- [' Court Cases ' , faBuildingColumns ],
93
- [' Incarceration Records ' , faBuildingColumns ],
87
+ [' jails & courts' , faBuildingColumns ], // Top level
88
+ [' jails and courts' , faBuildingColumns ], // Top level
89
+ [' jails & courts specific' , faBuildingColumns ], // Top level
90
+ [' jails and courts specific' , faBuildingColumns ], // Top level
91
+ [' booking reports ' , faBuildingColumns ],
92
+ [' court cases ' , faBuildingColumns ],
93
+ [' incarceration records ' , faBuildingColumns ],
94
94
])
95
95
);
96
96
0 commit comments