Le campagne rispettano orario e giorni lavorativi, richiedono una mail di test con dati inseriti a mano prima dell'invio massivo e offrono una dashboard per monitorare l'avanzamento. Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
377 B
JavaScript
21 lines
377 B
JavaScript
import { Controller } from "@hotwired/stimulus"
|
|
|
|
export default class extends Controller {
|
|
static targets = ["checkbox", "panel"]
|
|
|
|
connect() {
|
|
this.sync()
|
|
}
|
|
|
|
toggle() {
|
|
this.sync()
|
|
}
|
|
|
|
sync() {
|
|
if (!this.hasCheckboxTarget) return
|
|
|
|
const on = this.checkboxTarget.checked
|
|
this.panelTargets.forEach((el) => el.classList.toggle("hidden", !on))
|
|
}
|
|
}
|