Decouple login modal opening from Angular

This commit is contained in:
Matt-Yorkley
2022-01-16 13:19:39 +00:00
parent 6561a7246b
commit 04da148af0
3 changed files with 15 additions and 7 deletions

View File

@@ -0,0 +1,8 @@
import { Controller } from "stimulus"
export default class extends Controller {
call(event) {
event.preventDefault()
window.dispatchEvent(new Event("login:modal:open"))
}
}