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

@ -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")
)