Make fixme optional if stated in the softDeletionTags

This commit is contained in:
Pieter Vander Vennet 2022-09-11 01:25:56 +02:00
parent 4e346c2820
commit 6c3f9bae25
2 changed files with 22 additions and 16 deletions

View file

@ -30,6 +30,9 @@ export default class DeleteAction extends OsmChangeAction {
this._id = id
this._hardDelete = hardDelete
this.meta = {...meta, changeType: "deletion"}
if (softDeletionTags.usedKeys().indexOf("fixme") >= 0) {
this._softDeletionTags = softDeletionTags
} else {
this._softDeletionTags = new And([
softDeletionTags,
new Tag(
@ -38,6 +41,7 @@ export default class DeleteAction extends OsmChangeAction {
),
])
}
}
public async CreateChangeDescriptions(changes: Changes): Promise<ChangeDescription[]> {
const osmObject = await OsmObject.DownloadObjectAsync(this._id)

View file

@ -518,6 +518,8 @@
"motor_vehicle=",
"vehicle=",
"inline_skate=",
"inline_skates=",
"mofa=",
"moped=",
"moped_a=",
"moped_b=",
@ -526,8 +528,8 @@
"maxwidth:physical=",
"width:separation=",
"width:opening=",
"overlap="
"overlap=",
"fixme="
]
}