Conditional page.add_action_item

Hi all,

Is there any way to show and hide action item in the top-right page?
For example, suppose that I have a list of Reservation with different reservation_status. I want the Cancel Reservation action button only shows if the checked item of reservation have the “Created” reservation_status…