Display profile name in delete confirmation

This commit is contained in:
Cohee 2024-09-07 01:18:35 +03:00
parent 0019da260c
commit 916d73da4c

View File

@ -133,7 +133,8 @@ async function deleteConnectionProfile() {
return;
}
const confirm = await Popup.show.confirm('Are you sure you want to delete the selected profile?', null);
const name = extension_settings.connectionManager.profiles[index].name;
const confirm = await Popup.show.confirm('Are you sure you want to delete the selected profile?', name);
if (!confirm) {
return;