mapcomplete/Customizations/Questions/bike/PumpOperational.ts

18 lines
616 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() {
const to = Translations.t.cyclofix.station.operational
2020-07-16 14:21:06 +02:00
super({
question: to.question,
2020-07-16 14:21:06 +02:00
mappings: [
{k: new Tag("service:bicycle:pump:operational_status","broken"), txt: to.broken},
{k: new Tag("service:bicycle:pump:operational_status",""), txt: to.operational}
2020-07-16 14:21:06 +02:00
]
});
}
}