mapcomplete/Customizations/Questions/bike/StationPumpTools.ts

20 lines
869 B
TypeScript
Raw Normal View History

import {TagRenderingOptions} from "../../TagRendering";
import {Tag, And} from "../../../Logic/TagsFilter";
2020-07-20 21:43:42 +00:00
import Translations from "../../../UI/i18n/Translations";
export default class BikeStationPumpTools extends TagRenderingOptions {
constructor() {
2020-07-20 21:43:42 +00:00
const to = Translations.t.cylofix.station.services
super({
priority: 15,
2020-07-20 21:43:42 +00:00
question: to.question.Render(),
mappings: [
2020-07-20 21:43:42 +00:00
{k: new And([new Tag("service:bicycle:tools", "no"), new Tag("service:bicycle:pump", "yes")]), txt: to.pump.Render()},
{k: new And([new Tag("service:bicycle:tools", "yes"), new Tag("service:bicycle:pump", "no")]), txt: to.tools.Render()},
{k: new And([new Tag("service:bicycle:tools", "yes"), new Tag("service:bicycle:pump", "yes")]), txt: to.both.Render()}
]
});
}
}