fix at.link edit save

This commit is contained in:
2026-01-22 22:47:41 +09:00
parent b1fdd211b4
commit 279f952c99

View File

@@ -729,6 +729,14 @@ function setupLinkEdit(): void {
} }
}) })
// Also include pending add form input (if user forgot to click +)
if (addService && addUsername) {
const pendingUsername = addUsername.value.trim()
if (pendingUsername) {
links.push({ service: addService.value, username: pendingUsername })
}
}
try { try {
saveBtn.textContent = 'Saving...' saveBtn.textContent = 'Saving...'
;(saveBtn as HTMLButtonElement).disabled = true ;(saveBtn as HTMLButtonElement).disabled = true