Set the finish buttons on levelup and creation to disable after first click

This commit is contained in:
WBHarry 2025-08-15 22:38:49 +02:00
parent 16e931179f
commit fdfeda689a
2 changed files with 6 additions and 2 deletions

View file

@ -650,7 +650,9 @@ export default class DhlevelUp extends HandlebarsApplicationMixin(ApplicationV2)
this.render();
}
static async save() {
static async save(_, button) {
button.disabled = true;
const levelupData = Object.keys(this.levelup.levels).reduce((acc, level) => {
if (level >= this.levelup.startLevel) {
acc[level] = this.levelup.levels[level].toObject();