From 762684ffead793ea5ddb5c5f49e6947ba11f049f Mon Sep 17 00:00:00 2001 From: BlipRanger <1860540+BlipRanger@users.noreply.github.com> Date: Wed, 28 Jun 2023 00:43:45 -0400 Subject: [PATCH] Filter default tags (probably), update name --- public/index.html | 4 ++-- public/scripts/tags.js | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/public/index.html b/public/index.html index a4554639d..8f91fccdb 100644 --- a/public/index.html +++ b/public/index.html @@ -2269,8 +2269,8 @@ Show avatar filenames - - Show Card Tags + + Import Card Tags diff --git a/public/scripts/tags.js b/public/scripts/tags.js index 508faf2b6..0a7e4d559 100644 --- a/public/scripts/tags.js +++ b/public/scripts/tags.js @@ -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