Moved projects selector to a Stimulus controller

This commit is contained in:
2025-07-27 14:10:10 +03:00
parent 991ff51aae
commit c97c766c7c
4 changed files with 21 additions and 49 deletions
@@ -0,0 +1,14 @@
import { Controller } from '@hotwired/stimulus'
class ProjectsSelectorController extends Controller {
static values = {
frame: String
}
changeProject(event) {
const href = event.target.value
Turbo.visit(href, {action: 'advance', frame: this.frameValue})
}
}
export default ProjectsSelectorController