mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
cleanup
This commit is contained in:
parent
27ac324694
commit
f9f38814de
2 changed files with 1 additions and 6 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import { DhHomebrew } from '../../data/settings/_module.mjs';
|
||||
import DhSettingsActionView from './components/settingsActionsView.mjs';
|
||||
import { defaultRestOptions } from '../../config/generalConfig.mjs';
|
||||
|
||||
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api;
|
||||
|
||||
|
|
@ -159,10 +158,9 @@ export default class DhHomebrewSettings extends HandlebarsApplicationMixin(Appli
|
|||
}
|
||||
|
||||
static async reset() {
|
||||
//For some reason this doesn't seem to localize any of the strings, so calling a recursive call to localize all strings. ¯\_(ツ)_/¯
|
||||
const resetSettings = new DhHomebrew();
|
||||
let localizedSettings = this.localizeObject(resetSettings);
|
||||
await this.settings.updateSource(localizedSettings);
|
||||
this.settings.updateSource(localizedSettings);
|
||||
this.render();
|
||||
}
|
||||
|
||||
|
|
@ -175,7 +173,6 @@ export default class DhHomebrewSettings extends HandlebarsApplicationMixin(Appli
|
|||
} else {
|
||||
if (typeof value === 'string' && value.startsWith('DAGGERHEART.')) {
|
||||
obj[key] = game.i18n.localize(value);
|
||||
console.log(obj[key]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
|
||||
{{log this}}
|
||||
<fieldset class="left-main-container" style="padding-top: 0; margin-top: 8px;">
|
||||
<legend class="legend" style="line-height: 2px;">{{localize this.inventory.currency.title}}</legend>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue