Reflect new commands in the history

This commit is contained in:
Jorge Manrubia
2025-05-15 15:49:32 +02:00
parent 88fd3a7aaa
commit 09f5efc100
5 changed files with 9 additions and 6 deletions
@@ -3,7 +3,7 @@ import { HttpStatus } from "helpers/http_helpers"
import { marked } from "marked"
export default class extends Controller {
static targets = [ "input", "form", "output", "confirmation" ]
static targets = [ "input", "form", "output", "confirmation", "recentCommands" ]
static classes = [ "error", "confirmation", "help", "output", "busy" ]
static values = { originalInput: String, waitingForConfirmation: Boolean }
@@ -89,6 +89,7 @@ export default class extends Controller {
this.#handleJsonResponse(responseJson)
})
}
this.recentCommandsTarget.reload()
this.#reset()
}