mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
[Fix] Creation/Levelup disable finish button (#969)
* Set the finish buttons on levelup and creation to disable after first click * Raised system version
This commit is contained in:
parent
a07819611e
commit
88be4c953d
3 changed files with 7 additions and 3 deletions
|
|
@ -494,7 +494,9 @@ export default class DhCharacterCreation extends HandlebarsApplicationMixin(Appl
|
||||||
this.render();
|
this.render();
|
||||||
}
|
}
|
||||||
|
|
||||||
static async finish() {
|
static async finish(_, button) {
|
||||||
|
button.disabled = true;
|
||||||
|
|
||||||
const primaryAncestryFeature = this.setup.primaryAncestry.system.primaryFeature;
|
const primaryAncestryFeature = this.setup.primaryAncestry.system.primaryFeature;
|
||||||
const secondaryAncestryFeature = this.setup.secondaryAncestry?.uuid
|
const secondaryAncestryFeature = this.setup.secondaryAncestry?.uuid
|
||||||
? this.setup.secondaryAncestry.system.secondaryFeature
|
? this.setup.secondaryAncestry.system.secondaryFeature
|
||||||
|
|
|
||||||
|
|
@ -650,7 +650,9 @@ export default class DhlevelUp extends HandlebarsApplicationMixin(ApplicationV2)
|
||||||
this.render();
|
this.render();
|
||||||
}
|
}
|
||||||
|
|
||||||
static async save() {
|
static async save(_, button) {
|
||||||
|
button.disabled = true;
|
||||||
|
|
||||||
const levelupData = Object.keys(this.levelup.levels).reduce((acc, level) => {
|
const levelupData = Object.keys(this.levelup.levels).reduce((acc, level) => {
|
||||||
if (level >= this.levelup.startLevel) {
|
if (level >= this.levelup.startLevel) {
|
||||||
acc[level] = this.levelup.levels[level].toObject();
|
acc[level] = this.levelup.levels[level].toObject();
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "daggerheart",
|
"id": "daggerheart",
|
||||||
"title": "Daggerheart",
|
"title": "Daggerheart",
|
||||||
"description": "An unofficial implementation of the Daggerheart system",
|
"description": "An unofficial implementation of the Daggerheart system",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": "13",
|
"minimum": "13",
|
||||||
"verified": "13.347",
|
"verified": "13.347",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue