Skip to content

Commit

Permalink
More AppV2 changes 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mclemente committed May 28, 2024
1 parent 93c4588 commit ab6f0af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/module/forms/BehaviorSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class HealthEstimateBehaviorSettings extends HealthEstimateSettin
NPCsJustDie: this.prepSetting("NPCsJustDie"),
deathMarkerEnabled: game.healthEstimate.estimationProvider.deathMarker.config,
deathMarker: this.prepSetting("deathMarker"),
...HealthEstimateSettingsV2.BUTTONS,
buttons: this._getButtons(),
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/module/forms/StyleSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class HealthEstimateStyleSettings extends HealthEstimateSettingsV
scaleToGridSize: this.prepSetting("scaleToGridSize"),
scaleToZoom: this.prepSetting("scaleToZoom"),
deadText: game.settings.get("healthEstimate", "core.deathStateName"),
...HealthEstimateSettingsV2.BUTTONS,
buttons: this._getButtons(),
};
}

Expand Down
8 changes: 4 additions & 4 deletions src/module/forms/templates/BaseV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ export class HealthEstimateSettingsV2 extends HandlebarsApplicationMixin(Applica
},
};

static BUTTONS = {
buttons: [
_getButtons() {
return [
{ type: "submit", icon: "fa-solid fa-save", label: "SETTINGS.Save" },
{ type: "reset", action: "reset", icon: "fa-solid fa-undo", label: "SETTINGS.Reset" },
],
};
];
}

get title() {
return `Health Estimate: ${game.i18n.localize(this.options.window.title)}`;
Expand Down

0 comments on commit ab6f0af

Please sign in to comment.