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

FIX Add action--unlink class to unlink action #11659

Merged

Conversation

emteknetnz
Copy link
Member

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

This already has gridfield-button-unlink - why does it need a new CSS class?

@emteknetnz
Copy link
Member Author

emteknetnz commented Apr 2, 2025

It's naming does match the existing action--delete or action--archive pattern - we have logic here https://github.com/silverstripe/silverstripe-admin/pull/1921/files#diff-8a264e403774f999ba2208cab6299df5472cbbdf43c7081b5abaf4d03ba9af72R578 to check the existance of these classes. It would be messy to use an inconsistently named class there

@GuySartorelli
Copy link
Member

I don't agree that it would be messy and there is the consideration that this patch won't work unless people upgrade both modules with this approach.

I'm not overly fussed though, and will leave the choice to you.

@GuySartorelli
Copy link
Member

@emteknetnz Can you please respond to the above?

@emteknetnz
Copy link
Member Author

I think keep things as they are in this PR

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

LGTM, works as expected.

@GuySartorelli GuySartorelli merged commit 60391b3 into silverstripe:5.3 Apr 2, 2025
19 checks passed
@GuySartorelli GuySartorelli deleted the pulls/5.3/unlink-record branch April 2, 2025 02:30
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