Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing support for extra item actions in simple repeater #12674

Merged
merged 3 commits into from May 8, 2024

Conversation

lamberttraccard
Copy link
Contributor

Description

Add missing support for extra item actions in simple repeater

Visual changes

CleanShot 2024-05-07 at 14 28 40@2x

CleanShot 2024-05-07 at 14 29 46@2x

Functional changes

  • Code style has been fixed by running the composer cs command.
  • Changes have been tested to not break existing functionality.
  • Documentation is up-to-date.

@@ -50,8 +59,14 @@ class="fi-fo-repeater-item simple flex justify-start gap-x-3"
{{ $item }}
</div>

@if ($isReorderableWithDragAndDrop || $isReorderableWithButtons || $isCloneable || $isDeletable)
@if ($isReorderableWithDragAndDrop || $isReorderableWithButtons || $isCloneable || $isDeletable || filled($visibleExtraItemActions))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty array is falsy, so no need to wrap it in filled(), right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's right, I have updated the PR.

@zepfietje zepfietje assigned zepfietje and unassigned zepfietje May 7, 2024
@zepfietje zepfietje added the enhancement New feature or request label May 7, 2024
@zepfietje zepfietje added this to the v3 milestone May 7, 2024
@danharrin danharrin merged commit 3633499 into filamentphp:3.x May 8, 2024
10 checks passed
@danharrin
Copy link
Member

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants