fix: simplify talent rank display in character sheet
This commit is contained in:
parent
d99b1006ba
commit
1e7492073e
9 changed files with 3 additions and 73 deletions
|
@ -15,7 +15,7 @@ export function disableOverriddenFields(
|
|||
for (const key of Object.keys(foundry.utils.flattenObject(overrides))) {
|
||||
const elements = form?.querySelectorAll(selector(key));
|
||||
elements?.forEach((element) => {
|
||||
if (inputs.includes(element.tagName)) {
|
||||
if (inputs.includes(element.tagName) && !element.hasAttribute("disabled")) {
|
||||
element.setAttribute("disabled", "");
|
||||
const title = element.getAttribute("title");
|
||||
const newTitle = title === null ? titleAddition : `${title} ${titleAddition}`;
|
||||
|
|
|
@ -25,7 +25,6 @@ export async function registerHandlebarsPartials(): Promise<void> {
|
|||
"systems/ds4/templates/sheets/actor/components/item-list-header.hbs",
|
||||
"systems/ds4/templates/sheets/actor/components/items-overview.hbs",
|
||||
"systems/ds4/templates/sheets/actor/components/profile.hbs",
|
||||
"systems/ds4/templates/sheets/actor/components/talent-rank-equation.hbs",
|
||||
"systems/ds4/templates/sheets/actor/tabs/biography.hbs",
|
||||
"systems/ds4/templates/sheets/actor/tabs/character-abilities.hbs",
|
||||
"systems/ds4/templates/sheets/actor/tabs/character-inventory.hbs",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue