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

Programmatically disable button state #92

Open
atmediauk opened this issue Aug 5, 2021 · 0 comments
Open

Programmatically disable button state #92

atmediauk opened this issue Aug 5, 2021 · 0 comments

Comments

@atmediauk
Copy link

Hello,

Is it possible to disable button state programmatically as it looks out of place for some types of buttons.

The normal behaviour in Nova for an edit resource button or a link button is to simply load the page. With the nova-button plugin it will first show a loading/ success message and then load the page which makes the UI feel disjointed.

Is there a way to optionally disable this? For example:

Button::make('Text')->link('https://nova.laravel.com', '_self')->disableState();

or

Button::make('Text')->edit('App\Nova\User', $this->user_id)->disableState();

dnwjn added a commit to dnwjn/nova-button that referenced this issue Feb 6, 2022
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

No branches or pull requests

1 participant