mapcomplete/Customizations/Questions/bike/ShopRepair.ts

22 lines
753 B
TypeScript
Raw Normal View History

2020-07-20 21:43:42 +00:00
import {TagRenderingOptions} from "../../TagRendering";
import {Tag} from "../../../Logic/TagsFilter";
import Translations from "../../../UI/i18n/Translations";
export default class ShopRepair extends TagRenderingOptions {
constructor() {
const key = 'service:bicycle:repair'
const to = Translations.t.cyclofix.shop.repair
2020-07-20 21:43:42 +00:00
super({
priority: 5,
question: to.question.Render(),
mappings: [
{k: new Tag(key, "yes"), txt: to.yes.Render()},
2020-07-21 10:14:56 +00:00
{k: new Tag(key, "only_sold"), txt: to.sold.Render()},
{k: new Tag(key, "brand"), txt: to.brand.Render()},
2020-07-20 21:43:42 +00:00
{k: new Tag(key, "no"), txt: to.no.Render()},
]
});
}
}