mapcomplete/Customizations/Questions/bike/PumpManometer.ts

19 lines
652 B
TypeScript
Raw Normal View History

import {TagRenderingOptions} from "../../TagRendering";
import {Tag} from "../../../Logic/TagsFilter";
2020-07-20 23:43:42 +02:00
import Translations from "../../../UI/i18n/Translations";
2020-07-16 09:54:32 +02:00
export default class PumpManometer extends TagRenderingOptions {
2020-07-16 09:54:32 +02:00
constructor() {
const to = Translations.t.cyclofix.station.manometer
2020-07-16 09:54:32 +02:00
super({
2020-07-20 23:43:42 +02:00
question: to.question.Render(),
2020-07-16 09:54:32 +02:00
mappings: [
2020-07-20 23:43:42 +02:00
{k: new Tag("manometer", "yes"), txt: to.yes.Render()},
{k: new Tag("manometer", "no"), txt: to.no.Render()},
{k: new Tag("manometer", "broken"), txt: to.broken.Render()}
2020-07-16 09:54:32 +02:00
]
});
}
}