Restore command when clicking on it

This commit is contained in:
Jorge Manrubia
2025-05-07 11:58:17 +02:00
parent c9813f2fb1
commit 181e35b5b2
7 changed files with 53 additions and 14 deletions
@@ -20,6 +20,11 @@ export default class extends Controller {
}
}
restoreCommand(event) {
this.#reset(event.target.dataset.line)
this.focus()
}
async #handleErrorResponse(response) {
const status = response.status
const message = await response.text()