V10 compatibility with 0.7.0-alpha1 release

This commit is contained in:
Andrew 2022-08-23 21:23:59 -04:00
parent 107aec3244
commit e23893b6ca
12 changed files with 125 additions and 126 deletions

View file

@ -22,18 +22,22 @@ export class SimpleItemSheet extends ItemSheet {
/* -------------------------------------------- */
/** @inheritdoc */
getData() {
const context = super.getData();
async getData(options) {
const context = await super.getData(options);
EntitySheetHelper.getAttributeData(context.data);
context.systemData = context.data.data;
context.systemData = context.data.system;
context.dtypes = ATTRIBUTE_TYPES;
context.descriptionHTML = await TextEditor.enrichHTML(context.systemData.description, {
secrets: this.document.isOwner,
async: true
});
return context;
}
/* -------------------------------------------- */
/** @inheritdoc */
activateListeners(html) {
activateListeners(html) {
super.activateListeners(html);
// Everything below here is only needed if the sheet is editable