Programmatically including Vue components on all panel pages?


I’m working on a plugin that will prompt users to add specific data to files on upload (e.g. prompt to add alt text after uploading an image).

I have a custom Vue component that uses the k-dialog component for the UI. The logic for showing this is in an event listener that fires when a new image is uploaded.

I’m trying to find a simple/workable approach to programmatically including this custom Vue component on all panel pages. The only approach so far that I’ve found to work is to make the component a field and include the field on all pages, but this is no good since one could easily forget to add the field.

Any thoughts/ideas?

1 Like