mapcomplete/Customizations/Questions/bike/PumpOperational.ts

18 lines
632 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 14:21:06 +02:00
2020-07-16 15:56:10 +02:00
export default class PumpOperational extends TagRenderingOptions {
2020-07-16 14:21:06 +02:00
constructor() {
2020-07-20 23:43:42 +02:00
const to = Translations.t.cylofix.station.operational
2020-07-16 14:21:06 +02:00
super({
2020-07-20 23:43:42 +02:00
question: to.question.Render(),
2020-07-16 14:21:06 +02:00
mappings: [
2020-07-20 23:43:42 +02:00
{k: new Tag("service:bicycle:pump:operational_status","broken"), txt: to.broken.txt},
{k: new Tag("service:bicycle:pump:operational_status",""), txt: to.operational.txt}
2020-07-16 14:21:06 +02:00
]
});
}
}