Correção def adicionar_motorista authorize @consolidacao, :update?e na busca na adição dos motoristas
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user