[O] Replace alert with confirm window

pull/131/head
Azalea 2025-03-20 06:29:59 -04:00
parent edf5dd133b
commit 05dea088df
1 changed files with 5 additions and 2 deletions

View File

@ -40,8 +40,11 @@
function actuallyStartTransfer() {
srcEl.pull()
.then(() => dstEl.push(srcExportedData))
.then(() => alert("Transfer successful!"))
.catch(e => alert(`Transfer failed: ${e}`))
.then(() => confirm = {
title: "Done!",
message: `Transfer completed successfully! Your data on ${dst.dns} is overwritten with your data from ${src.dns}.`
})
.catch(e => error = e)
.finally(() => loading = false)
}