mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-14 04:04:23 +00:00
Decouple login modal opening from Angular
This commit is contained in:
8
app/webpacker/controllers/login_modal_controller.js
Normal file
8
app/webpacker/controllers/login_modal_controller.js
Normal 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"))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user