forked from MapComplete/MapComplete
Make fixme optional if stated in the softDeletionTags
This commit is contained in:
parent
4e346c2820
commit
6c3f9bae25
2 changed files with 22 additions and 16 deletions
|
@ -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)
|
||||
|
|
|
@ -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="
|
||||
]
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue