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:
Gmer4Lfe
2026-08-09 21:47:23 -04:00
parent 7d865b0a09
commit e4423200cc
7 changed files with 69 additions and 57 deletions
+3 -3
View File
@@ -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');