Use translations and fancy icon

This commit is contained in:
Pieter Vander Vennet 2022-12-16 01:33:27 +01:00
parent 5e1b4d95ab
commit 66298880f1
3 changed files with 5 additions and 2 deletions

View file

@ -11,7 +11,7 @@ import Loc from "../../../Models/Loc"
/***
* Saves all the features that are passed in to localstorage, so they can be retrieved on the next run
*
* Technically, more an Actor then a featuresource, but it fits more neatly this ay
* Technically, more an Actor then a featuresource, but it fits more neatly this way
*/
export default class SaveTileToLocalStorageActor {
private readonly visitedTiles: UIEventSource<Map<number, Date>>

View file

@ -85,6 +85,9 @@ export default class FilteringFeatureSource implements FeatureSourceForLayer, Ti
if (isShown !== undefined && !isShown.matchesProperties(tags)) {
return false
}
if(tags._deleted === "yes"){
return false
}
const tagsFilter = Array.from(layer.appliedFilters?.data?.values() ?? [])
for (const filter of tagsFilter) {

View file

@ -81,7 +81,7 @@ export default class FeatureInfoBox extends ScrollableFullScreen {
layerConfig: LayerConfig,
state: FeaturePipelineState): BaseUIElement{
return new Toggle(
"This object is deleted",
new Combine([Svg.delete_icon_svg().SetClass("w-8 h-8"), Translations.t.delete.isDeleted]).SetClass("flex justify-center font-bold items-center") ,
FeatureInfoBox.GenerateMainContent(tags, layerConfig, state),
tags.map(t => t["_deleted"] == "yes")
)