Themes: disable 'disused' from delete config, delete less fast for shops but use softdeletion instead

This commit is contained in:
Pieter Vander Vennet 2024-01-29 17:51:12 +01:00
parent 53ea4273df
commit 28e737ed2e
5 changed files with 37 additions and 13 deletions

View file

@ -10,8 +10,8 @@
import type { Feature } from "geojson"
import { UIEventSource } from "../../../Logic/UIEventSource"
import LayerConfig from "../../../Models/ThemeConfig/LayerConfig"
import { TagsFilter } from "../../../Logic/Tags/TagsFilter"
import { TagUtils } from "../../../Logic/Tags/TagUtils"
import { TagUtils } from "../../../Logic/Tags/TagUtils"
import type { UploadableTag } from "../../../Logic/Tags/TagUtils"
import OsmChangeAction from "../../../Logic/Osm/Actions/OsmChangeAction"
import DeleteAction from "../../../Logic/Osm/Actions/DeleteAction"
import ChangeTagAction from "../../../Logic/Osm/Actions/ChangeTagAction"
@ -42,7 +42,7 @@
const t = Translations.t.delete
let selectedTags: TagsFilter
let selectedTags: UploadableTag
let changedProperties = undefined
$: changedProperties = TagUtils.changeAsProperties(selectedTags?.asChange(tags?.data ?? {}) ?? [])
let isHardDelete = undefined

View file

@ -988,6 +988,7 @@ export default class SpecialVisualizations {
return undefined
}
return new SvelteUIElement(SpecialTranslation, {
t: title,
tags: tagsSource,
state,
feature,