You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ui): unpublish button missing for globals and version count incorrectly incrementing after unpublish (#16203)
# Overview
Fixes the unpublish button not appearing for globals, and fixes the
version count tab incorrectly incrementing after unpublishing.
## Key Changes
- Extended `showDotMenu` in `DocumentControls` to render for globals
with drafts enabled
- Fixed `incrementVersionCount` being called unconditionally on
unpublish — it should only fire when unpublishing a specific locale, not
all locales
## Design Decisions
Collection-only dot menu actions (create, duplicate, delete) self-guard
via permissions that are always false for globals, so no extra
conditions were needed.
#### Before
<img width="1221" height="402" alt="Screenshot 2026-04-07 at 3 44 28 PM"
src="https://github.com/user-attachments/assets/e60984f9-6abd-4110-9374-d5d22027a608"
/>
#### After
<img width="1217" height="434" alt="Screenshot 2026-04-07 at 3 40 53 PM"
src="https://github.com/user-attachments/assets/94e38404-0d70-47dd-b28a-f8e76a52d275"
/>
0 commit comments