I have an admin Backoffice.
I have item lists with an action button on each item. Several actions are available.
When an action is temporarily unavailable, I've decided to disable it. But sometimes an action is definitively unavailable.
For instance, imagine you have VAT codes (1 = 5%, 2 = 10%). Those codes can be applied to items.
An admin can delete a VAT code if it is not used by an item. Then, according to my logic, when it can not be deleted, I would disable it.
But, I have a particular process where an item can no longer be edited. Then, the VAT code can not be "unused", and can no longer be deleted.
In this situation, should I keep my action disabled (although it will never be enabled again on this item) or should I remove the action?
I'm afraid, for option 2, that it could be weird for the admin, that sometimes some impossible actions are disabled, and sometimes they are hidden.
I've read a lot of discussions about this kind of question, but not with my use case. Thank you.