Correção def adicionar_motorista authorize @consolidacao, :update?e na busca na adição dos motoristas

This commit is contained in:
2026-06-26 11:38:35 -03:00
parent 1ad1d4c143
commit b659a66612
3 changed files with 51 additions and 5 deletions

View File

@@ -20,4 +20,12 @@ export default class extends Controller {
fundo(event) {
if (event.target === this.modalTarget) this.fechar()
}
// Preenche o input com o motorista escolhido na lista de previstos.
selecionar(event) {
if (this.hasInputTarget) {
this.inputTarget.value = event.currentTarget.dataset.nome
this.inputTarget.focus()
}
}
}