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: Added the "confirm" attribute to the property translations #2976

Merged
merged 1 commit into from
Mar 21, 2025

Conversation

xav-developer
Copy link
Contributor

Fixes #

Proposed Changes

  • Pass the text for translation to the "confirm" method of the "Button" class

Before:

            Button::make('Title')
                ->icon('bs.trash3')
                ->confirm(__('Conformation'))
                ->method('destroy')
                ->canSee($this->model->exists),

After:

            Button::make('Title')
                ->icon('bs.trash3')
                ->confirm('Conformation')
                ->method('destroy')
                ->canSee($this->model->exists),

@tabuna tabuna merged commit 31e5f71 into orchidsoftware:master Mar 21, 2025
44 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants