Add char version to group panel member names

- Follows the same style as version in char list
- Respects the chosen "auxiliary field" setting

Closes #3359
This commit is contained in:
Wolfsblvt
2025-01-26 18:44:12 +01:00
parent a42337ad0a
commit 35ab677ff1
3 changed files with 14 additions and 2 deletions

View File

@@ -1368,6 +1368,15 @@ function getGroupCharacterBlock(character) {
template.find('.ch_fav').val(isFav);
template.toggleClass('is_fav', isFav);
const auxFieldName = power_user.aux_field || 'character_version';
const auxFieldValue = (character.data && character.data[auxFieldName]) || '';
if (auxFieldValue) {
template.find('.character_version').text(auxFieldValue);
}
else {
template.find('.character_version').hide();
}
let queuePosition = groupChatQueueOrder.get(character.avatar);
if (queuePosition) {
template.find('.queue_position').text(queuePosition);