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:
Pieter Vander Vennet 2024-07-26 21:48:02 +02:00
parent 9ec625302b
commit a445cdde04
2 changed files with 31 additions and 2 deletions

View file

@ -513,6 +513,34 @@
"internet-all", "internet-all",
"questions" "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 "allowMove": true
} }

View file

@ -1,4 +1,5 @@
import { TagConfigJson } from "./TagConfigJson" import { TagConfigJson } from "./TagConfigJson"
import { Translatable } from "./Translatable"
export interface DeleteConfigJson { export interface DeleteConfigJson {
/*** /***
@ -62,7 +63,7 @@ export interface DeleteConfigJson {
* *
* question: What text should be shown to the contributor for this reason? * question: What text should be shown to the contributor for this reason?
*/ */
then: string | any then: Translatable
}[] }[]
/** /**