wagtail-personalisation icon indicating copy to clipboard operation
wagtail-personalisation copied to clipboard

Missing media in SegmentModelAdmin

Open aweakley opened this issue 7 years ago • 2 comments

In our segment admin view at /admin/wagtail_personalisation/segment/edit/1/ the page chooser in the Visit Count Rule does not pop up the modal because wagtailadmin/js/page-chooser.js and wagtailadmin/js/page-chooser-modal.js are missing from the media. I've fixed it by adding those files to SegmentModelAdmin.form_view_extra_js, but is there a better way?

aweakley avatar Oct 29 '18 23:10 aweakley

The issue seems to have been caused by overriding the extra_js template block. #195 should fix this.

jberghoef avatar Oct 30 '18 09:10 jberghoef

That didn't fix it for me I'm afraid. I've pulled d9ef74c and I'm getting the same behaviour.

aweakley avatar Oct 31 '18 22:10 aweakley