mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Filter default tags (probably), update name
This commit is contained in:
@@ -2269,8 +2269,8 @@
|
||||
<label for="show_card_avatar_urls"><input id="show_card_avatar_urls" type="checkbox" />
|
||||
<span data-i18n="Show avatar filenames">Show avatar filenames</span>
|
||||
</label>
|
||||
<label for="show_card_tags"><input id="show_card_tags" type="checkbox" />
|
||||
<span data-i18n="Show Card Tags">Show Card Tags</span>
|
||||
<label for="import_card_tags"><input id="import_card_tags" type="checkbox" />
|
||||
<span data-i18n="Import Card Tags">Import Card Tags</span>
|
||||
</label>
|
||||
|
||||
<div class="inline-drawer wide100p flexFlowColumn">
|
||||
|
@@ -203,8 +203,9 @@ function selectTag(event, ui, listSelector) {
|
||||
}
|
||||
|
||||
function importTags(imported_char) {
|
||||
|
||||
for (let tagName of imported_char.data.tags) {
|
||||
//Ignore the tags ROOT and TAVERN
|
||||
let imported_tags = imported_char.tags.filter(t => t !== "ROOT" && t !== "TAVERN");
|
||||
for (let tagName of imported_tags) {
|
||||
let tag = tags.find(t => t.name === tagName);
|
||||
|
||||
// create new tag if it doesn't exist
|
||||
|
Reference in New Issue
Block a user