Custom Index Field with Button and Modal #3654
Unanswered
danielschweiger
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm working on a custom field (index) which generate a button. A click on the button sends an ajax request (not in the code) with the resourceId. This all works. I want to show the server response in the Nova Modal.
My current solution (open modal on button click) only works for the last entry of the resources table or if only 1 result is available.
Here is my index component:
this is the relevant JS part:
I'm pretty sure it is because every field has the
<portal>
tag?Any Ideas how to solve this?
I used the GeneralModal.vue code from this gist:
https://gist.github.com/blackfyre/ccd2a207948912594b5ac6cf67a11ef8
Beta Was this translation helpful? Give feedback.
All reactions