[O] Replace alert with confirm window

This commit is contained in:
Azalea
2025-03-20 06:29:59 -04:00
parent edf5dd133b
commit 05dea088df

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)
}