mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add names display to data bank
This commit is contained in:
@ -656,6 +656,12 @@ async function openAttachmentManager() {
|
|||||||
const isNotInChat = getCurrentChatId() === undefined;
|
const isNotInChat = getCurrentChatId() === undefined;
|
||||||
template.find('.characterAttachmentsBlock').toggle(!isNotCharacter);
|
template.find('.characterAttachmentsBlock').toggle(!isNotCharacter);
|
||||||
template.find('.chatAttachmentsBlock').toggle(!isNotInChat);
|
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();
|
const hasFandomPlugin = await isFandomPluginAvailable();
|
||||||
|
@ -44,7 +44,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="justifyLeft characterAttachmentsBlock marginBot10">
|
<div class="justifyLeft characterAttachmentsBlock marginBot10">
|
||||||
<h3 class="margin0 title_restorable">
|
<h3 class="margin0 title_restorable">
|
||||||
<span data-i18n="Character Attachments">Character Attachments</span>
|
<span data-i18n="Character Attachments">
|
||||||
|
Character Attachments
|
||||||
|
</span>
|
||||||
<div class="flex-container flexGap10">
|
<div class="flex-container flexGap10">
|
||||||
<div class="scrapeWebpageButton menu_button_icon menu_button" data-attachment-manager-target="character" title="Download a page from the web.">
|
<div class="scrapeWebpageButton menu_button_icon menu_button" data-attachment-manager-target="character" title="Download a page from the web.">
|
||||||
<i class="fa-fw fa-solid fa-globe"></i>
|
<i class="fa-fw fa-solid fa-globe"></i>
|
||||||
@ -66,9 +68,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</h3>
|
</h3>
|
||||||
|
<div class="flex-container flexFlowColumn">
|
||||||
|
<strong><small class="characterAttachmentsName"></small></strong>
|
||||||
<small data-i18n="These files are available the current character in all chats they are in.">
|
<small data-i18n="These files are available the current character in all chats they are in.">
|
||||||
These files are available the current character in all chats they are in.
|
These files are available the current character in all chats they are in.
|
||||||
</small>
|
</small>
|
||||||
|
</div>
|
||||||
<div class="characterAttachmentsList attachmentsList"></div>
|
<div class="characterAttachmentsList attachmentsList"></div>
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
@ -98,9 +103,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</h3>
|
</h3>
|
||||||
|
<div class="flex-container flexFlowColumn">
|
||||||
|
<strong><small class="chatAttachmentsName"></small></strong>
|
||||||
<small data-i18n="These files are available to all characters in the current chat.">
|
<small data-i18n="These files are available to all characters in the current chat.">
|
||||||
These files are available to all characters in the current chat.
|
These files are available to all characters in the current chat.
|
||||||
</small>
|
</small>
|
||||||
|
</div>
|
||||||
<div class="chatAttachmentsList attachmentsList"></div>
|
<div class="chatAttachmentsList attachmentsList"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user