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