Report failures where the operator can still see them
The 55 alert() calls carried the same suppression as the confirms, and go wrong in the worse direction: a silenced confirm makes a button do nothing, while a silenced alert lets the action run and says nothing about it failing. vvAlert returns a promise nobody has to await, so these converted by rename with no caller becoming async. The icon is inferred from the message rather than asked of fifty call sites, and an explicit type still wins.
This commit is contained in:
@@ -1755,9 +1755,9 @@ function vvMsRun() {
|
||||
const flags = Array.from(document.querySelectorAll('#vv-ms-card input[data-flag]:checked'))
|
||||
.map(el => el.dataset.flag).join(' ');
|
||||
|
||||
if (!local) { alert('Enter a local source path.'); return; }
|
||||
if (!slot) { alert('Select a remote server.'); return; }
|
||||
if (!rpath) { alert('Enter a remote destination path.'); return; }
|
||||
if (!local) { vvAlert('Enter a local source path.'); return; }
|
||||
if (!slot) { vvAlert('Select a remote server.'); return; }
|
||||
if (!rpath) { vvAlert('Enter a remote destination path.'); return; }
|
||||
|
||||
const btn = document.getElementById('vv-ms-run-btn');
|
||||
const stat = document.getElementById('vv-ms-run-status');
|
||||
|
||||
Reference in New Issue
Block a user