Task status selector in index

This commit is contained in:
2025-10-31 22:42:26 +02:00
parent 8bb22f8e04
commit 74c22b7b3d
11 changed files with 92 additions and 6 deletions
@@ -0,0 +1,17 @@
import { Controller } from "@hotwired/stimulus"
class StatusSelectorController extends Controller {
static targets = ['form', 'statusField']
changeStatus(event) {
let statusId = event.currentTarget.dataset.statusId
this.statusFieldTarget.value = statusId
this.formTarget.requestSubmit()
}
finalize() {
this.element.open = false
}
}
export default StatusSelectorController