Add placeholder tab template

This commit is contained in:
Oliver 2026-04-23 21:18:15 -06:00
parent 6ccc10f897
commit 60d29adc3e
2 changed files with 13 additions and 2 deletions

View file

@ -48,7 +48,9 @@ export class PlayerSheet extends
primaryAttributes: { template: filePath(`templates/PlayerSheet/primary-attributes.hbs`) },
tabs: { template: filePath(`templates/generic/tabs.hbs`) },
content: { template: filePath(`templates/PlayerSheet/content.hbs`) },
attributeTab: {},
attributeTab: {
template: filePath(`templates/PlayerSheet/attributes-tab.hbs`),
},
items: {
template: filePath(`templates/PlayerSheet/item-lists.hbs`),
scrollable: [``],
@ -302,7 +304,9 @@ export class PlayerSheet extends
ctx.attrs = filtered;
};
async _prepareAttributesTab(ctx) {};
async _prepareAttributesTab(ctx) {
ctx.tabActive = this.tabGroups.primary === `attributes`;
};
async _prepareTabList(ctx) {
ctx.tabs = await this._prepareTabs(`primary`);

View file

@ -0,0 +1,7 @@
<div
class="tab attributes-tab {{ifThen tabActive "active" ""}}"
data-group="primary"
data-tab="attributes"
>
Attribute Tab
</div>