Move set avatar button to on-click on avatar

This commit is contained in:
Cohee
2023-06-21 20:22:54 +03:00
parent 4d299916be
commit 408f83804d
3 changed files with 14 additions and 6 deletions

View File

@ -4834,7 +4834,7 @@ export function select_selected_character(chid) {
$('.open_alternate_greetings').data('chid', chid);
$('#set_character_world').data('chid', chid);
const world = characters[chid]?.data?.extensions?.world;
const worldSet = world && world_names.includes(world);
const worldSet = Boolean(world && world_names.includes(world));
$('#set_character_world').toggleClass('world_set', worldSet);
checkEmbeddedWorld(chid);