From f33dd638b3bbe0f12ae0239ee14a3409de93267e Mon Sep 17 00:00:00 2001 From: BlipRanger <1860540+BlipRanger@users.noreply.github.com> Date: Mon, 10 Jul 2023 20:03:11 -0400 Subject: [PATCH] Show name when tags are imported --- public/scripts/tags.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/tags.js b/public/scripts/tags.js index b1e0788e4..55b7568d7 100644 --- a/public/scripts/tags.js +++ b/public/scripts/tags.js @@ -243,9 +243,9 @@ async function importTags(imported_char) { let selected_tags = ""; const existingTagsString = existingTags.length ? (': ' + existingTags.join(', ')) : ''; if (newTags.length === 0) { - await callPopup(`

Importing Tags

${existingTags.length} existing tags have been found${existingTagsString}.

`, 'text'); + await callPopup(`

Importing Tags For ${imported_char.name}

${existingTags.length} existing tags have been found${existingTagsString}.

`, 'text'); } else { - selected_tags = await callPopup(`

Importing Tags

${existingTags.length} existing tags have been found${existingTagsString}.

The following ${newTags.length} new tags will be imported.

`, 'input', newTags.join(', ')); + selected_tags = await callPopup(`

Importing Tags For ${imported_char.name}

${existingTags.length} existing tags have been found${existingTagsString}.

The following ${newTags.length} new tags will be imported.

`, 'input', newTags.join(', ')); } selected_tags = existingTags.concat(selected_tags.split(',')); selected_tags = selected_tags.map(t => t.trim()).filter(t => t !== "");