mirror of https://github.com/hykilpikonna/AquaDX
[O] Replace alert with confirm window
parent
edf5dd133b
commit
05dea088df
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue