2020-07-16 15:29:50 +02:00
|
|
|
import {Tag} from "../../../Logic/TagsFilter";
|
2020-07-20 23:43:42 +02:00
|
|
|
import Translations from "../../../UI/i18n/Translations";
|
2020-07-31 17:38:03 +02:00
|
|
|
import {TagRenderingOptions} from "../../TagRenderingOptions";
|
2020-07-16 09:54:32 +02:00
|
|
|
|
2020-07-16 15:29:50 +02:00
|
|
|
|
2020-08-06 19:42:10 +02:00
|
|
|
export default class
|
|
|
|
PumpValves extends TagRenderingOptions{
|
2020-07-16 09:54:32 +02:00
|
|
|
constructor() {
|
2020-07-21 01:13:51 +02:00
|
|
|
const to = Translations.t.cyclofix.station.valves
|
2020-07-16 09:54:32 +02:00
|
|
|
super({
|
2020-07-22 00:18:07 +02:00
|
|
|
question: to.question,
|
2020-07-16 09:54:32 +02:00
|
|
|
mappings: [
|
|
|
|
{
|
2020-08-06 19:42:10 +02:00
|
|
|
k: new Tag("valves", "sclaverand;schrader;dunlop"),
|
2020-07-22 00:18:07 +02:00
|
|
|
txt: to.default
|
2020-07-16 09:54:32 +02:00
|
|
|
},
|
2020-07-22 00:18:07 +02:00
|
|
|
{k: new Tag("valves", "dunlop"), txt: to.dunlop},
|
|
|
|
{k: new Tag("valves", "sclaverand"), txt: to.sclaverand},
|
|
|
|
{k: new Tag("valves", "auto"), txt: to.auto},
|
2020-07-16 09:54:32 +02:00
|
|
|
],
|
|
|
|
freeform: {
|
2020-07-20 23:43:42 +02:00
|
|
|
extraTags: new Tag("fixme", "Freeform valves= tag used: possibly a wrong value"),
|
2020-07-16 09:54:32 +02:00
|
|
|
key: "valves",
|
2020-07-22 00:18:07 +02:00
|
|
|
template: to.template,
|
|
|
|
renderTemplate: to.render
|
2020-07-16 09:54:32 +02:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
2020-07-16 15:29:50 +02:00
|
|
|
}
|