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

@@ -1,5 +1,5 @@
%li#login-link
%a{"auth" => "login"}
%li#login-link{ "data-controller": "login-modal" }
%a{"auth": "login", "data-action": "click->login-modal#call" }
%img{ src: image_pack_path("menu/icn-login.svg") }
%span
= t 'label_login'