Skip to content

feat: hide slug field buttons when field is read-only#14824

Merged
paulpopus merged 3 commits intopayloadcms:mainfrom
jefferyto:ui-slug-field-readonly-hide-buttons
Apr 9, 2026
Merged

feat: hide slug field buttons when field is read-only#14824
paulpopus merged 3 commits intopayloadcms:mainfrom
jefferyto:ui-slug-field-readonly-hide-buttons

Conversation

@jefferyto
Copy link
Copy Markdown
Contributor

The Generate and Lock/Unlock buttons serve no purpose when the field is read-only.

The Generate and Lock/Unlock buttons serve no purpose when the field is
read-only.
@paulpopus paulpopus merged commit 67c2c47 into payloadcms:main Apr 9, 2026
163 checks passed
PatrikKozak added a commit that referenced this pull request Apr 14, 2026
…t suite (#16279)

# Overview

Removes a debug `console.log` left in the `SlugField` test collection's
`overrides` callback that was introduced in #14824

## Key Changes

- Removed `console.log({ field: defaultField.fields[1] })` from the
`readOnlySlug` override
- Cast `defaultField.fields[1]` as `TextField` to fix pre-existing
TypeScript errors on that line
@github-actions
Copy link
Copy Markdown
Contributor

🚀 This is included in version v3.83.0

@jefferyto jefferyto deleted the ui-slug-field-readonly-hide-buttons branch April 15, 2026 19:46
milamer pushed a commit to milamer/payload that referenced this pull request Apr 20, 2026
The Generate and Lock/Unlock buttons serve no purpose when the field is
read-only.

---------

Co-authored-by: Paul Popus <paul@payloadcms.com>
milamer pushed a commit to milamer/payload that referenced this pull request Apr 20, 2026
…t suite (payloadcms#16279)

# Overview

Removes a debug `console.log` left in the `SlugField` test collection's
`overrides` callback that was introduced in payloadcms#14824

## Key Changes

- Removed `console.log({ field: defaultField.fields[1] })` from the
`readOnlySlug` override
- Cast `defaultField.fields[1]` as `TextField` to fix pre-existing
TypeScript errors on that line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants