From 5e26d9ae0b8f4446e63caeb44baebde15506c650 Mon Sep 17 00:00:00 2001 From: Uyiosa Enabulele Date: Thu, 12 Oct 2017 21:24:09 +0100 Subject: [PATCH] feat(preset): add substance field to pipeline preset --- data/presets.yaml | 3 +++ data/presets/fields.json | 5 +++++ data/presets/fields/substance.json | 5 +++++ data/presets/presets.json | 3 ++- data/presets/presets/man_made/pipeline.json | 3 ++- dist/locales/en.json | 3 +++ 6 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 data/presets/fields/substance.json diff --git a/data/presets.yaml b/data/presets.yaml index 6c94831b08..91e48d0da1 100644 --- a/data/presets.yaml +++ b/data/presets.yaml @@ -1319,6 +1319,9 @@ en: studio: # studio=* label: Type + substance: + # substance=* + label: Substance substation: # substation=* label: Type diff --git a/data/presets/fields.json b/data/presets/fields.json index c8f63b51ac..52210ebdbf 100644 --- a/data/presets/fields.json +++ b/data/presets/fields.json @@ -1801,6 +1801,11 @@ "type": "combo", "label": "Type" }, + "substance": { + "key": "substance", + "type": "combo", + "label": "Substance" + }, "substation": { "key": "substation", "type": "typeCombo", diff --git a/data/presets/fields/substance.json b/data/presets/fields/substance.json new file mode 100644 index 0000000000..210721a249 --- /dev/null +++ b/data/presets/fields/substance.json @@ -0,0 +1,5 @@ +{ + "key": "substance", + "type": "combo", + "label": "Substance" +} diff --git a/data/presets/presets.json b/data/presets/presets.json index 86861b30be..7243324b35 100644 --- a/data/presets/presets.json +++ b/data/presets/presets.json @@ -9953,7 +9953,8 @@ "icon": "pipeline-line", "fields": [ "location", - "operator" + "operator", + "substance" ], "geometry": [ "line" diff --git a/data/presets/presets/man_made/pipeline.json b/data/presets/presets/man_made/pipeline.json index 6c80564b13..e5cae8b858 100644 --- a/data/presets/presets/man_made/pipeline.json +++ b/data/presets/presets/man_made/pipeline.json @@ -2,7 +2,8 @@ "icon": "pipeline-line", "fields": [ "location", - "operator" + "operator", + "substance" ], "geometry": [ "line" diff --git a/dist/locales/en.json b/dist/locales/en.json index f821341081..aaf82a7687 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -2195,6 +2195,9 @@ "studio": { "label": "Type" }, + "substance": { + "label": "Substance" + }, "substation": { "label": "Type" },