nova-inline-select
nova-inline-select copied to clipboard
Is it possible to refresh the record after the update?
I have a colourful Badge next to my InlineSelect, they both display the same value but based on the value I used different colours. It would be nice if the Badge could get updated after I change its value using your InlineSelect. Is this possible?
@vesper8 can you please provide some code snippets/screenshots of what it is you would like ?
@babacarcissedia what I mean is that typically when you run, for example, an action on a record, then Nova updates the whole record following the action, do a sort of "refresh" from the database. But when I change the value of the InlineSelect, the InlineSelect field itself reflects the change but the whole record does not seem to refreshed. In my case, the select value affects other nova fields and those do not reflect that the select value has just occurred after I use the InlineSelect. I hope I'm explaining it correctly.
So in the following image, if the Due Days column to be refreshed after the status field is updated.
A "quick and dirty" solution for this is to add this
this.$parent.$parent.$parent.$parent.$parent.$parent.getResources()
in the mixins/inline.js file after the update has happened.
It will reload the entire table.
I obviously doens't recommend this, just putting it out there 👯