17 lines
292 B
JavaScript
17 lines
292 B
JavaScript
|
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;
|
||
|
}
|
||
|
}
|