mapcomplete/Customizations/Questions/bike/ShopPump.ts

20 lines
581 B
TypeScript
Raw Normal View History

2020-07-20 23:43:42 +02:00
import {TagRenderingOptions} from "../../TagRendering";
import {Tag} from "../../../Logic/TagsFilter";
import Translations from "../../../UI/i18n/Translations";
export default class ShopPump extends TagRenderingOptions {
constructor() {
const key = 'service:bicycle:pump'
const to = Translations.t.cyclofix.shop.pump
2020-07-20 23:43:42 +02:00
super({
priority: 5,
question: to.question,
2020-07-20 23:43:42 +02:00
mappings: [
{k: new Tag(key, "yes"), txt: to.yes},
{k: new Tag(key, "no"), txt: to.no},
2020-07-20 23:43:42 +02:00
]
});
}
}