Finished token implementation

This commit is contained in:
WBHarry 2025-12-20 17:14:19 +01:00
parent 3b237a223f
commit 809255ba79
7 changed files with 466 additions and 34 deletions

View file

@ -427,10 +427,7 @@ export default class DhHomebrewSettings extends HandlebarsApplicationMixin(Appli
static async resetTokenSizes() {
await this.settings.updateSource({
tokenSizes: Object.values(this.settings.schema.fields.tokenSizes.fields).reduce(
(acc, field) => ({ ...acc, [field.name]: field.initial }),
{}
)
tokenSizes: this.settings.schema.fields.tokenSizes.initial
});
this.render();