mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-06-07 21:34:16 +02:00
Use prepare tabs override instead
This commit is contained in:
parent
c6443d7dc5
commit
26fdd20b0d
1 changed files with 8 additions and 11 deletions
|
|
@ -46,16 +46,13 @@ export default class NPCSheet extends DHBaseActorSheet {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
prepareTabs(context) {
|
|
||||||
context.tabs.features.empty = this.document.system.features.length === 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @inheritdoc */
|
/** @inheritdoc */
|
||||||
async _prepareContext(options) {
|
_prepareTabs(group) {
|
||||||
const context = await super._prepareContext(options);
|
const result = super._prepareTabs(group);
|
||||||
this.prepareTabs(context);
|
if (group === 'primary') {
|
||||||
|
result.features.empty = this.document.system.features.length === 0;
|
||||||
return context;
|
}
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @inheritdoc */
|
/** @inheritdoc */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue