Statuses in task - db field and forms

This commit is contained in:
2025-10-25 17:41:06 +03:00
parent b08468568b
commit ba2aad93af
12 changed files with 86 additions and 13 deletions
@@ -0,0 +1,22 @@
import { Controller } from '@hotwired/stimulus'
// TODO: unite with ProjectsSelectorController?
class FormProjectsSelectorController extends Controller {
static values = {
frame: String
}
connect() {
console.log("Connected", this.element)
}
changeProject(event) {
const loc = new URL(location)
const selected = event.target.selectedOptions[0]
const code = selected.dataset.code
loc.searchParams.set('project', code)
Turbo.visit(loc.toString(), {frame: this.frameValue})
}
}
export default FormProjectsSelectorController