mirror of
https://github.com/RoY7x/worldbuilding.git
synced 2025-07-06 06:30:39 -04:00
V10 compatibility with 0.7.0-alpha1 release
This commit is contained in:
parent
107aec3244
commit
e23893b6ca
12 changed files with 125 additions and 126 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue