diff --git a/assets/layers/hackerspace/hackerspace.json b/assets/layers/hackerspace/hackerspace.json index 2a866c4f1..69bf6bc64 100644 --- a/assets/layers/hackerspace/hackerspace.json +++ b/assets/layers/hackerspace/hackerspace.json @@ -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 } diff --git a/src/Models/ThemeConfig/Json/DeleteConfigJson.ts b/src/Models/ThemeConfig/Json/DeleteConfigJson.ts index 07d247d02..4571bd904 100644 --- a/src/Models/ThemeConfig/Json/DeleteConfigJson.ts +++ b/src/Models/ThemeConfig/Json/DeleteConfigJson.ts @@ -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 }[] /**