Include autenticazione, progetti isolati, mail marketing HTML con SMTP, test A/B e editor WYSIWYG. Co-authored-by: Cursor <cursoragent@cursor.com>
13 lines
294 B
JavaScript
13 lines
294 B
JavaScript
import { Controller } from "@hotwired/stimulus"
|
|
|
|
export default class extends Controller {
|
|
static targets = ["source", "checkbox"]
|
|
|
|
toggle() {
|
|
const checked = this.sourceTarget.checked
|
|
this.checkboxTargets.forEach((el) => {
|
|
if (!el.disabled) el.checked = checked
|
|
})
|
|
}
|
|
}
|