Include persona name in delete confirmation Closes #4119

51431b1a7539d72df01201d7c65e5933aadbe3ee

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +3 -1Ignore whitespace
public/scripts/personas.js+3 -1
@@ -1007,7 +1007,9 @@ async function deleteUserAvatar() {
1007 console.warn('No avatar id found');1007 console.warn('No avatar id found');
1008 return;1008 return;
1009 }1009 }
1010 const confirm = await Popup.show.confirm(t`Delete Persona`,1010 const name = power_user.personas[avatarId] || '';
1011 const confirm = await Popup.show.confirm(
1012 t`Delete Persona` + `: ${name}`,
1011 t`Are you sure you want to delete this avatar?` + '<br />' + t`All information associated with its linked persona will be lost.`);1013 t`Are you sure you want to delete this avatar?` + '<br />' + t`All information associated with its linked persona will be lost.`);
10121014
1013 if (!confirm) {1015 if (!confirm) {