Skip to content

Commit

Permalink
Data Quality: + Option for list all features or only invalid ones
Browse files Browse the repository at this point in the history
  • Loading branch information
emi420 committed Jan 24, 2024
1 parent aebc222 commit beb3578
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion frontend/src/views/projectLiveMonitoring.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export function ProjectLiveMonitoring() {
const [mapConfig, setMapConfig] = useState(config);
const [realtimeList, setRealtimeList] = useState(false);
const [realtimeMap, setRealtimeMap] = useState(false);
const [listAll, setListAll] = useState(false);
// eslint-disable-next-line
const [status, setStatus] = useState(statusList.UNSQUARED);
// eslint-disable-next-line
Expand Down Expand Up @@ -340,6 +341,14 @@ export function ProjectLiveMonitoring() {
type="checkbox"
/>
<label target="liveMapCheckbox">Live map</label>
<input
onChange={() => {
setListAll(!listAll);
}}
name="listAllCheckbox"
type="checkbox"
/>
<label target="listAllCheckbox">List all</label>
</form>
</div>
<UnderpassFeatureList
Expand All @@ -362,7 +371,7 @@ export function ProjectLiveMonitoring() {
}}
realtime={realtimeList}
config={config}
status={status}
status={listAll ? "" : status}
orderBy="created_at"
onFetchFirstTime={(mostRecentFeature) => {
if (mostRecentFeature) {
Expand Down

0 comments on commit beb3578

Please sign in to comment.