Add names display to data bank

This commit is contained in:
Cohee
2024-04-16 02:36:46 +03:00
parent 242d57c14b
commit 57314443ed
2 changed files with 21 additions and 7 deletions

View File

@ -656,6 +656,12 @@ async function openAttachmentManager() {
const isNotInChat = getCurrentChatId() === undefined;
template.find('.characterAttachmentsBlock').toggle(!isNotCharacter);
template.find('.chatAttachmentsBlock').toggle(!isNotInChat);
const characterName = characters[this_chid]?.name || 'Anonymous';
template.find('.characterAttachmentsName').text(characterName);
const chatName = getCurrentChatId() || 'Unnamed chat';
template.find('.chatAttachmentsName').text(chatName);
}
const hasFandomPlugin = await isFandomPluginAvailable();