import WastelandItemSheet from "./base-item-sheet.mjs" export default class WastelandMutationSheet extends WastelandItemSheet { static DEFAULT_OPTIONS = { classes: ["mutation"], position: { width: 620 }, window: { contentClasses: ["mutation-content"] }, } static PARTS = { main: { template: "systems/fvtt-wasteland/templates/item-mutation-sheet.hbs" }, } tabGroups = { primary: "description" } #getTabs() { const tabs = { description: { id: "description", group: "primary", label: "Description" } } for (const v of Object.values(tabs)) { v.active = this.tabGroups[v.group] === v.id v.cssClass = v.active ? "active" : "" } return tabs } async _prepareContext() { const context = await super._prepareContext() context.tabs = this.#getTabs() return context } }