Skip to content

don't show new entry btn on a modal if section disabled#14951

Merged
brandonkelly merged 5 commits into4.xfrom
bugfix/14923-modal-multisite-new-entry-btn
May 7, 2024
Merged

don't show new entry btn on a modal if section disabled#14951
brandonkelly merged 5 commits into4.xfrom
bugfix/14923-modal-multisite-new-entry-btn

Conversation

@i-just
Copy link
Copy Markdown
Contributor

@i-just i-just commented May 7, 2024

Description

In a multisite installation, if an Entries field has a source set to section(s) that are all not enabled for the current site, don’t show the “New entry” button in the modal.

Don’t show the dropdown arrow if there’s only one publishable section for the site.

Don’t add sections which are not available for the current site to the dropdown.

Applies to v4 and v5. There’s a followup PR coming just for v5 too.

Related issues

#14923

@i-just i-just requested a review from brandonkelly May 7, 2024 10:32
@i-just i-just mentioned this pull request May 7, 2024
@brandonkelly brandonkelly merged commit af3df3f into 4.x May 7, 2024
@brandonkelly brandonkelly deleted the bugfix/14923-modal-multisite-new-entry-btn branch May 7, 2024 12:08
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.

2 participants