WIP Relay editing UI

This commit is contained in:
2026-08-11 19:45:07 -06:00
parent a9045fa413
commit 407d9f633e
5 changed files with 137 additions and 32 deletions
@@ -0,0 +1,17 @@
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static targets = [ "list", "template" ]
add (event) {
event.preventDefault()
const row = this.templateTarget.content.cloneNode(true)
this.listTarget.appendChild(row)
}
remove (event) {
event.preventDefault()
const row = event.target.closest("li")
row.remove()
}
}