Skip to content

Conversation

@Kocal
Copy link
Contributor

@Kocal Kocal commented Jan 31, 2026

I'm tweaking my admin interface a little, and I needed to add a new custom action with an icon.

Without icon:, fas fa-file-invoice is used as the button text.

Thanks!

I'm tweaking my admin interface a little, and I needed to add a new custom action with an icon.

Without `icon:`, 'fas fa-file-invoice' is used as the button text. 

Thanks!
@javiereguiluz javiereguiluz merged commit 03c4c7d into EasyCorp:4.x Jan 31, 2026
18 checks passed
@javiereguiluz
Copy link
Collaborator

Good catch! Thanks Hugo.

However, there was another error (which indirectly caused the other error): the action was missing its name! This is an internal ID for the action that is used e.g. when updating actions, in the CSS classes for the generated action, etc. It must be the first argument. So, I fixed that too while merging. Thanks!

@Kocal Kocal deleted the patch-1 branch January 31, 2026 12:22
@Kocal
Copy link
Contributor Author

Kocal commented Jan 31, 2026

Yeah I saw other actions has id/label/icon arguments, but I wasn't sure here.

Thanks Javier! 🚀

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