Migration vers datamodels
This commit is contained in:
24
modules/items/sheets/trait-sheet.js
Normal file
24
modules/items/sheets/trait-sheet.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import EcrymeBaseItemSheet from "./base-item-sheet.js"
|
||||
|
||||
export default class EcrymeTraitSheet extends EcrymeBaseItemSheet {
|
||||
/** @override */
|
||||
static DEFAULT_OPTIONS = {
|
||||
classes: ["trait"],
|
||||
position: { width: 520 },
|
||||
}
|
||||
|
||||
/** @override */
|
||||
static PARTS = {
|
||||
header: { template: "systems/fvtt-ecryme/templates/items/partials/item-header.hbs" },
|
||||
tabs: { template: "templates/generic/tab-navigation.hbs" },
|
||||
description: { template: "systems/fvtt-ecryme/templates/items/partials/item-description.hbs" },
|
||||
details: { template: "systems/fvtt-ecryme/templates/items/item-trait-details.hbs" },
|
||||
}
|
||||
|
||||
/** @override */
|
||||
async _preparePartContext(partId, context) {
|
||||
context = await super._preparePartContext(partId, context)
|
||||
if (partId === "details") context.tab = context.tabs.details
|
||||
return context
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user