forked from MapComplete/MapComplete
Add some advanced delete options to hackerspaces (namely 'repair café' and 'coworking') as the hackerspace tag has been widely abused for this type of amenity.
This commit is contained in:
parent
9ec625302b
commit
a445cdde04
2 changed files with 31 additions and 2 deletions
|
@ -513,6 +513,34 @@
|
|||
"internet-all",
|
||||
"questions"
|
||||
],
|
||||
"deletion": true,
|
||||
"deletion": {
|
||||
"nonDeleteMappings": [
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"leisure=",
|
||||
"hackerspace=",
|
||||
"amenity=workshop",
|
||||
"repair=assisted_self_service"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"en": "This is an workshop for assisted self service, such as a repair café"
|
||||
}
|
||||
},
|
||||
{
|
||||
"if": {
|
||||
"and": [
|
||||
"leisure=",
|
||||
"hackerspace=",
|
||||
"office=coworking"
|
||||
]
|
||||
},
|
||||
"then": {
|
||||
"en": "This is a coworking office"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"allowMove": true
|
||||
}
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { TagConfigJson } from "./TagConfigJson"
|
||||
import { Translatable } from "./Translatable"
|
||||
|
||||
export interface DeleteConfigJson {
|
||||
/***
|
||||
|
@ -62,7 +63,7 @@ export interface DeleteConfigJson {
|
|||
*
|
||||
* question: What text should be shown to the contributor for this reason?
|
||||
*/
|
||||
then: string | any
|
||||
then: Translatable
|
||||
}[]
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue