Skip to content

Conversation

@heidkaemper
Copy link
Contributor

When using Publish/Unpublish from the row action dropdown in entry listings, the action executes correctly but the dropdown menu doesn't update to reflect the new state. For example, after clicking "Unpublish", the menu still shows "Unpublish" instead of "Publish". As seen here:

Screen.Recording.2026-01-26.at.11.10.48.mov

This pull request fixes this by resetting actionsLoaded after an action has been executed and forces a reload. This only applies to listings where the actions are fetched via API. (props.actions === undefined)

An alternative approach would be to load the actions directly in the ListedEntry endpoint and combine this with a watch on props.actions in the Vue component. However, implementation using actionsLoaded requires way less code. And in my opinion, reloading actions is a good compromise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant