added confirmation dialog on modpack deletion
This commit is contained in:
parent
e8583d3a05
commit
0ca4ba2ded
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user