You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't see any docs on how to use ActiveAdmin.modal_dialog in custom JS after the upgrading from 2.3.1 to 2.5.0. Looking through the commits I can see the JS has undergone significant changes which would explain the breakage but can't see the new way to use the modal_dialog function.
We have a app/assets/javascripts/active_admin.js file which is calling ActiveAdmin.modal_dialog, this is now raising an ActiveAdmin is not defined error.
What is the new way to do this? Our app uses webpacker so I'm happy to switch this JS to webpacker if thats the way to go now, the only sprockets JS we have in our app is some custom active admin code.
Thanks
The text was updated successfully, but these errors were encountered:
I’m pretty sure components aren’t exported at all as I didn’t expect those to be used in client code, sorry about that @kernow.
Webpacker compatible package is not that far from being ready though we would still need to add export statements to make this work.
I’ll check what can be done to mitigate this meanwhile
Hi,
I can't see any docs on how to use
ActiveAdmin.modal_dialog
in custom JS after the upgrading from 2.3.1 to 2.5.0. Looking through the commits I can see the JS has undergone significant changes which would explain the breakage but can't see the new way to use themodal_dialog
function.We have a
app/assets/javascripts/active_admin.js
file which is callingActiveAdmin.modal_dialog
, this is now raising anActiveAdmin is not defined
error.What is the new way to do this? Our app uses webpacker so I'm happy to switch this JS to webpacker if thats the way to go now, the only sprockets JS we have in our app is some custom active admin code.
Thanks
The text was updated successfully, but these errors were encountered: