1
0
postdoc/app/javascript/controllers/remote_form_modal_controller.js

17 lines
292 B
JavaScript
Raw Normal View History

2020-12-06 20:49:03 +01:00
import { Controller } from "stimulus"
export default class extends Controller {
static targets = [ "container", "form" ]
connect() {
}
handleSuccess() {
}
handleError(event) {
let [data, status, xhr] = event.detail;
this.formTarget.innerHTML = xhr.responseText;
}
}