mapcomplete/Customizations/Questions/bike/ShopSecondHand.ts

20 lines
633 B
TypeScript
Raw Normal View History

2020-07-21 12:14:56 +02:00
import {Tag} from "../../../Logic/TagsFilter";
import Translations from "../../../UI/i18n/Translations";
2020-07-31 17:38:03 +02:00
import {TagRenderingOptions} from "../../TagRenderingOptions";
2020-07-21 12:14:56 +02:00
export default class ShopPump extends TagRenderingOptions {
constructor() {
const key = 'service:bicycle:second_hand'
2020-07-21 23:31:41 +02:00
const to = Translations.t.cyclofix.shop.secondHand
2020-07-21 12:14:56 +02:00
super({
2020-07-21 23:31:41 +02:00
question: to.question,
2020-07-21 12:14:56 +02:00
mappings: [
2020-07-21 23:31:41 +02:00
{k: new Tag(key, "yes"), txt: to.yes},
{k: new Tag(key, "no"), txt: to.no},
{k: new Tag(key, "only"), txt: to.only},
2020-07-21 12:14:56 +02:00
]
});
}
}