added confirmation dialog on modpack deletion

This commit is contained in:
Samuel Walker 2024-07-15 11:08:31 -06:00
parent e8583d3a05
commit 0ca4ba2ded

View File

@ -110,7 +110,7 @@ function add(){
}
function remove(){
invoke("remove_pack", {id: selected_pack}).then(refresh);
ask("Are you sure you want to remove " + document.getElementById(selected_pack).textContent + "?", {title: "Are you sure?", type: "Message"}).then((value) => { if (value) { invoke("remove_pack", {id: selected_pack}).then(refresh); } });
}
async function browse(){