mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-09 02:37:27 +08:00
[O] Replace alert with confirm window
This commit is contained in:
@@ -40,8 +40,11 @@
|
|||||||
function actuallyStartTransfer() {
|
function actuallyStartTransfer() {
|
||||||
srcEl.pull()
|
srcEl.pull()
|
||||||
.then(() => dstEl.push(srcExportedData))
|
.then(() => dstEl.push(srcExportedData))
|
||||||
.then(() => alert("Transfer successful!"))
|
.then(() => confirm = {
|
||||||
.catch(e => alert(`Transfer failed: ${e}`))
|
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)
|
.finally(() => loading = false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user