mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Log if tags couldn't be imported
This commit is contained in:
@ -726,7 +726,11 @@ async function importTags(character, { importSetting = null } = {}) {
|
|||||||
const tagsToImport = tagNamesToImport.map(tag => getTag(tag, { createNew: true }));
|
const tagsToImport = tagNamesToImport.map(tag => getTag(tag, { createNew: true }));
|
||||||
const added = addTagsToEntity(tagsToImport, character.avatar);
|
const added = addTagsToEntity(tagsToImport, character.avatar);
|
||||||
|
|
||||||
toastr.success(`Imported tags:<br />${tagsToImport.map(x => x.name).join(', ')}`, 'Importing Tags', { escapeHtml: false });
|
if (added) {
|
||||||
|
toastr.success(`Imported tags:<br />${tagsToImport.map(x => x.name).join(', ')}`, 'Importing Tags', { escapeHtml: false });
|
||||||
|
} else {
|
||||||
|
toastr.error(`Couldn't import tags:<br />${tagsToImport.map(x => x.name).join(', ')}`, 'Importing Tags', { escapeHtml: false });
|
||||||
|
}
|
||||||
|
|
||||||
return added;
|
return added;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user