Skip to content

Commit a8f49e8

Browse files
committed
Version bump
- fixed config selected field filtering
1 parent 319d654 commit a8f49e8

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# 6.0.3
2+
3+
**Mappings**
4+
5+
- Fixed Token config window
6+
- Improved JSON and Script editor styling
7+
- Improved Image and Config control layout
8+
19
# 6.0.2
210

311
- Fixed setting import errors

token-variants/applications/tokenCustomConfig.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ export default class TokenCustomConfig extends foundry.applications.sheets.Token
6666
else return this._onSaveConfig(event, form, formData);
6767
}
6868

69-
async _onSaveConfig(event, form, formData) {
69+
async _onSaveConfig(event, form) {
7070
// filter form data by selected form-groups
71+
const formData = new FormDataExtended(form).object;
72+
7173
const filtered = {};
7274
form.querySelectorAll('.form-group').forEach((formGroup) => {
7375
const tva_checkbox = formGroup.querySelector('.tva-config-checkbox > input');

token-variants/applications/tokenHUD.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,11 +370,8 @@ async function _onImageClick(event, tokenId) {
370370
if (keyPressed('config') && game.user.isGM) {
371371
const toggleCog = (saved) => {
372372
const cog = imgButton.find('.fa-cog');
373-
if (saved) {
374-
cog.addClass('active');
375-
} else {
376-
cog.removeClass('active');
377-
}
373+
if (saved) cog.addClass('active');
374+
else cog.removeClass('active');
378375
};
379376
new TokenCustomConfig(token, {}, imgSrc, name, toggleCog).render(true);
380377
} else if (token.document.texture.src === imgSrc) {

token-variants/module.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"id": "token-variants",
33
"title": "Token Variant Art",
44
"description": "Searches a customizable list of directories and displays art variants for tokens/actors through pop-ups and a new Token HUD button. Variants can be individually shared with players allowing them to switch out their token art on the fly.",
5-
"version": "6.0.2",
5+
"version": "6.0.3",
66
"compatibility": {
77
"minimum": 13,
88
"verified": 13
99
},
10-
"download": "https://github.com/Aedif/TokenVariants/releases/download/6.0.2/token-variants.zip",
10+
"download": "https://github.com/Aedif/TokenVariants/releases/download/6.0.3/token-variants.zip",
1111
"url": "https://github.com/Aedif/TokenVariants",
1212
"manifest": "https://raw.githubusercontent.com/Aedif/TokenVariants/master/token-variants/module.json",
1313
"authors": [

0 commit comments

Comments
 (0)